diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-02-12 23:28:33 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-02-12 23:28:33 +0000 |
commit | 02e8c5f0a57c6147171ba5db0f234951fda152d7 (patch) | |
tree | 00330f57444fb4bd0d9a39ecc6fbdb91be786840 | |
parent | b7098cc153468a7b48f1c8b134189c43f25ac639 (diff) | |
download | ffmpeg-02e8c5f0a57c6147171ba5db0f234951fda152d7.tar.gz |
Dont drop B frames without last_picture.
Fixes issue1722
Originally committed as revision 21783 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h264.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index dfe618b444..60cf395467 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1715,11 +1715,6 @@ static int decode_slice_header(H264Context *h, H264Context *h0){ h->slice_type_nos= slice_type & 3; s->pict_type= h->slice_type; // to make a few old functions happy, it's wrong though - if (s->pict_type == FF_B_TYPE && s0->last_picture_ptr == NULL) { - av_log(h->s.avctx, AV_LOG_ERROR, - "B picture before any references, skipping\n"); - return -1; - } pps_id= get_ue_golomb(&s->gb); if(pps_id>=MAX_PPS_COUNT){ |