mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/h264: also show frames with missing fields when CODEC_FLAG2_SHOW_ALL is set
This allows viewing more of ticket2254 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
75cc85b239
commit
fe439c2069
|
@ -762,6 +762,9 @@ 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);
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue