You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
fix warning reported by Intel C compiler:
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
This commit is contained in:
committed by
Guillaume Poirier
parent
2d5174fc46
commit
9aa1cfec1a
@@ -59,10 +59,7 @@ int ff_h264_find_frame_end(H264Context *h, const uint8_t *buf, int buf_size)
|
|||||||
if(v==7 || v==8 || v==9){
|
if(v==7 || v==8 || v==9){
|
||||||
if(pc->frame_start_found){
|
if(pc->frame_start_found){
|
||||||
i++;
|
i++;
|
||||||
found:
|
goto found;
|
||||||
pc->state=7;
|
|
||||||
pc->frame_start_found= 0;
|
|
||||||
return i-(state&5);
|
|
||||||
}
|
}
|
||||||
}else if(v==1 || v==2 || v==5){
|
}else if(v==1 || v==2 || v==5){
|
||||||
if(pc->frame_start_found){
|
if(pc->frame_start_found){
|
||||||
@@ -80,6 +77,11 @@ found:
|
|||||||
}
|
}
|
||||||
pc->state= state;
|
pc->state= state;
|
||||||
return END_NOT_FOUND;
|
return END_NOT_FOUND;
|
||||||
|
|
||||||
|
found:
|
||||||
|
pc->state=7;
|
||||||
|
pc->frame_start_found= 0;
|
||||||
|
return i-(state&5);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int h264_parse(AVCodecParserContext *s,
|
static int h264_parse(AVCodecParserContext *s,
|
||||||
|
Reference in New Issue
Block a user