]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Remove redundant assignment. err is assigned in every switch case anyway. Issue
authorsuperdump <superdump@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 21 Apr 2009 12:29:36 +0000 (12:29 +0000)
committersuperdump <superdump@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 21 Apr 2009 12:29:36 +0000 (12:29 +0000)
found by CSA.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18641 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/aac.c

index 0d2d0efe654cc4b49ac4b5699d10d64efccde4c5..5c3e2aade1818593dbeea8b5b5d0553989b13abb 100644 (file)
@@ -1629,7 +1629,6 @@ static int aac_decode_frame(AVCodecContext * avccontext, void * data, int * data
     // parse
     while ((elem_type = get_bits(&gb, 3)) != TYPE_END) {
         elem_id = get_bits(&gb, 4);
-        err = -1;
 
         if(elem_type < TYPE_DSE && !(che=get_che(ac, elem_type, elem_id))) {
             av_log(ac->avccontext, AV_LOG_ERROR, "channel element %d.%d is not allocated\n", elem_type, elem_id);