mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-27 21:40:34 +00:00
Merge commit '458e7c94830d1522997e33a0b5e87bd709e8a349'
* commit '458e7c94830d1522997e33a0b5e87bd709e8a349':
hevc: implement pic_output_flag handling
Conflicts:
libavcodec/hevc.c
libavcodec/hevc_refs.c
See: 2eddf3a6ef
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
e1f4397e74
@ -461,6 +461,7 @@ static int hls_slice_header(HEVCContext *s)
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
||||
// when flag is not present, picture is inferred to be output
|
||||
sh->pic_output_flag = 1;
|
||||
if (s->pps->output_flag_present_flag)
|
||||
sh->pic_output_flag = get_bits1(gb);
|
||||
|
@ -144,10 +144,12 @@ int ff_hevc_set_new_ref(HEVCContext *s, AVFrame **frame, int poc)
|
||||
*frame = ref->frame;
|
||||
s->ref = ref;
|
||||
|
||||
if (s->sh.pic_output_flag)
|
||||
ref->flags = HEVC_FRAME_FLAG_OUTPUT | HEVC_FRAME_FLAG_SHORT_REF;
|
||||
else
|
||||
ref->flags = HEVC_FRAME_FLAG_SHORT_REF;
|
||||
|
||||
ref->poc = poc;
|
||||
ref->flags = HEVC_FRAME_FLAG_OUTPUT | HEVC_FRAME_FLAG_SHORT_REF;
|
||||
if (s->sh.pic_output_flag == 0)
|
||||
ref->flags &= ~(HEVC_FRAME_FLAG_OUTPUT);
|
||||
ref->sequence = s->seq_decode;
|
||||
ref->window = s->sps->output_window;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user