diff options
author | James Almer <jamrial@gmail.com> | 2021-07-25 23:09:00 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-07-25 23:54:10 -0300 |
commit | f7958d0883286479a6c9cd91e68e506dfa02ed7c (patch) | |
tree | 371a924e93d02c0169fe9ade55dabd557701137b | |
parent | da6975f0222a2db4cfbc1c17fe6e32c37f6a88fe (diff) | |
download | ffmpeg-f7958d0883286479a6c9cd91e68e506dfa02ed7c.tar.gz |
avcodec/h264_sei: honor the Film Grain Characteristics cancel flag
Film Grain persistence is cancelled when it's true.
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavcodec/h264_sei.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264_sei.c b/libavcodec/h264_sei.c index b1785c6198..7797f24650 100644 --- a/libavcodec/h264_sei.c +++ b/libavcodec/h264_sei.c @@ -420,9 +420,9 @@ static int decode_alternative_transfer(H264SEIAlternativeTransfer *h, static int decode_film_grain_characteristics(H264SEIFilmGrainCharacteristics *h, GetBitContext *gb) { - int film_grain_characteristics_cancel_flag = get_bits1(gb); + h->present = !get_bits1(gb); // film_grain_characteristics_cancel_flag - if (!film_grain_characteristics_cancel_flag) { + if (h->present) { memset(h, 0, sizeof(*h)); h->model_id = get_bits(gb, 8); h->separate_colour_description_present_flag = get_bits1(gb); |