Commit fe439c20 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/h264: also show frames with missing fields when CODEC_FLAG2_SHOW_ALL is set

This allows viewing more of ticket2254
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 75cc85b2
......@@ -762,7 +762,10 @@ static void decode_postinit(H264Context *h, int setup_finished)
* yet, so we assume the worst for now. */
// if (setup_finished)
// ff_thread_finish_setup(h->avctx);
return;
if (cur->field_poc[0] == INT_MAX && cur->field_poc[1] == INT_MAX)
return;
if (h->avctx->hwaccel || !(h->avctx->flags2 & CODEC_FLAG2_SHOW_ALL))
return;
}
cur->f.interlaced_frame = 0;
......
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