Commit 3c8432c7 authored by michael's avatar michael

Dont drop B frames without last_picture.

Fixes issue1722


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21783 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent faa49205
......@@ -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){
......
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