libavcodec/h264_parser.c(77): warning #589: transfer of control
bypasses initialization of:
variable "v" (declared at line 58)
goto found;
This new form also improves readability.
Patch by Diego 'Flameeyes' Pettenò %flameeyes A gmail P com%
Originally committed as revision 15526 to svn://svn.ffmpeg.org/ffmpeg/trunk
if(v==7 || v==8 || v==9){
if(pc->frame_start_found){
i++;
-found:
- pc->state=7;
- pc->frame_start_found= 0;
- return i-(state&5);
+ goto found;
}
}else if(v==1 || v==2 || v==5){
if(pc->frame_start_found){
}
pc->state= state;
return END_NOT_FOUND;
+
+found:
+ pc->state=7;
+ pc->frame_start_found= 0;
+ return i-(state&5);
}
static int h264_parse(AVCodecParserContext *s,