Commit 38b589dd authored by michael's avatar michael

Move CODEC_FLAG_LOW_DELAY into ff_mpeg4_decode_picture_header().


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16255 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9204eeb2
...@@ -6065,7 +6065,7 @@ int ff_mpeg4_decode_picture_header(MpegEncContext * s, GetBitContext *gb) ...@@ -6065,7 +6065,7 @@ int ff_mpeg4_decode_picture_header(MpegEncContext * s, GetBitContext *gb)
if(s->codec_tag == ff_get_fourcc("WV1F") && show_bits(gb, 24) == 0x575630){ if(s->codec_tag == ff_get_fourcc("WV1F") && show_bits(gb, 24) == 0x575630){
skip_bits(gb, 24); skip_bits(gb, 24);
if(get_bits(gb, 8) == 0xF0) if(get_bits(gb, 8) == 0xF0)
return decode_vop_header(s, gb); goto end;
} }
startcode = 0xff; startcode = 0xff;
...@@ -6128,12 +6128,16 @@ int ff_mpeg4_decode_picture_header(MpegEncContext * s, GetBitContext *gb) ...@@ -6128,12 +6128,16 @@ int ff_mpeg4_decode_picture_header(MpegEncContext * s, GetBitContext *gb)
mpeg4_decode_gop_header(s, gb); mpeg4_decode_gop_header(s, gb);
} }
else if(startcode == VOP_STARTCODE){ else if(startcode == VOP_STARTCODE){
return decode_vop_header(s, gb); break;
} }
align_get_bits(gb); align_get_bits(gb);
startcode = 0xff; startcode = 0xff;
} }
end:
if(s->flags& CODEC_FLAG_LOW_DELAY)
s->low_delay=1;
return decode_vop_header(s, gb);
} }
/* don't understand why they choose a different header ! */ /* don't understand why they choose a different header ! */
......
...@@ -402,9 +402,6 @@ retry: ...@@ -402,9 +402,6 @@ retry:
ret = ff_mpeg4_decode_picture_header(s, &gb); ret = ff_mpeg4_decode_picture_header(s, &gb);
} }
ret = ff_mpeg4_decode_picture_header(s, &s->gb); ret = ff_mpeg4_decode_picture_header(s, &s->gb);
if(s->flags& CODEC_FLAG_LOW_DELAY)
s->low_delay=1;
} else if (s->codec_id == CODEC_ID_H263I) { } else if (s->codec_id == CODEC_ID_H263I) {
ret = intel_h263_decode_picture_header(s); ret = intel_h263_decode_picture_header(s);
} else if (s->h263_flv) { } else if (s->h263_flv) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment