mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
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>
This commit is contained in:
parent
da6975f022
commit
f7958d0883
@ -420,9 +420,9 @@ static int decode_alternative_transfer(H264SEIAlternativeTransfer *h,
|
|||||||
static int decode_film_grain_characteristics(H264SEIFilmGrainCharacteristics *h,
|
static int decode_film_grain_characteristics(H264SEIFilmGrainCharacteristics *h,
|
||||||
GetBitContext *gb)
|
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));
|
memset(h, 0, sizeof(*h));
|
||||||
h->model_id = get_bits(gb, 8);
|
h->model_id = get_bits(gb, 8);
|
||||||
h->separate_colour_description_present_flag = get_bits1(gb);
|
h->separate_colour_description_present_flag = get_bits1(gb);
|
||||||
|
Loading…
Reference in New Issue
Block a user