mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-13 16:40:27 +00:00
hevc: Make sure to update the current frame transfer characteristic
Otherwise the first decoded frame will still be tagged with the original transfer instead of the alternative one. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
This commit is contained in:
parent
2e91a96d7b
commit
dc9735eb67
@ -2729,7 +2729,7 @@ static int set_side_data(HEVCContext *s)
|
|||||||
if (s->sei.alternative_transfer.present &&
|
if (s->sei.alternative_transfer.present &&
|
||||||
av_color_transfer_name(s->sei.alternative_transfer.preferred_transfer_characteristics) &&
|
av_color_transfer_name(s->sei.alternative_transfer.preferred_transfer_characteristics) &&
|
||||||
s->sei.alternative_transfer.preferred_transfer_characteristics != AVCOL_TRC_UNSPECIFIED) {
|
s->sei.alternative_transfer.preferred_transfer_characteristics != AVCOL_TRC_UNSPECIFIED) {
|
||||||
s->avctx->color_trc = s->sei.alternative_transfer.preferred_transfer_characteristics;
|
s->avctx->color_trc = out->color_trc = s->sei.alternative_transfer.preferred_transfer_characteristics;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user