Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
decoder_vt: set AVFrame color_{trc,primaries} and colorspace fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mbouron authored and mbouron-gpsw committed Oct 18, 2021
1 parent e87d10b commit babad13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/decoder_vt.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ static int push_async_frame(struct decoder_ctx *dec_ctx,
frame->format = avctx->pix_fmt;
frame->pts = async_frame->pts;
frame->color_range = AVCOL_RANGE_MPEG;
frame->color_primaries = avctx->color_primaries;
frame->color_trc = avctx->color_trc;
frame->colorspace = avctx->colorspace;
frame->data[3] = (uint8_t *)async_frame->cv_buffer;
frame->buf[0] = av_buffer_create(frame->data[3],
sizeof(frame->data[3]),
Expand Down

0 comments on commit babad13

Please sign in to comment.