You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
h264dec: Support CODEC_FLAG2_SHOW_ALL.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -3713,6 +3713,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size){
|
|||||||
(hx->nal_unit_type == NAL_IDR_SLICE) ||
|
(hx->nal_unit_type == NAL_IDR_SLICE) ||
|
||||||
(h->sei_recovery_frame_cnt >= 0);
|
(h->sei_recovery_frame_cnt >= 0);
|
||||||
h->sync |= !!s->current_picture_ptr->f.key_frame;
|
h->sync |= !!s->current_picture_ptr->f.key_frame;
|
||||||
|
h->sync |= 3*!!(s->flags2 & CODEC_FLAG2_SHOW_ALL);
|
||||||
s->current_picture_ptr->sync = h->sync;
|
s->current_picture_ptr->sync = h->sync;
|
||||||
|
|
||||||
if (h->current_slice == 1) {
|
if (h->current_slice == 1) {
|
||||||
|
Reference in New Issue
Block a user