mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-28 13:40:55 +00:00
Merge commit '816e5b997028c8215c804b1e58b2388592ed612b'
* commit '816e5b997028c8215c804b1e58b2388592ed612b': hevc: Reject impossible slice segment Conflicts: libavcodec/hevc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
d9bb7fc3cb
@ -701,6 +701,11 @@ static int hls_slice_header(HEVCContext *s)
|
||||
|
||||
sh->slice_ctb_addr_rs = sh->slice_segment_addr;
|
||||
|
||||
if (!s->sh.slice_ctb_addr_rs && s->sh.dependent_slice_segment_flag) {
|
||||
av_log(s->avctx, AV_LOG_ERROR, "Impossible slice segment.\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
||||
s->HEVClc->first_qp_group = !s->sh.dependent_slice_segment_flag;
|
||||
|
||||
if (!s->pps->cu_qp_delta_enabled_flag)
|
||||
|
Loading…
Reference in New Issue
Block a user