summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-06-26 00:01:07 +0200
committerPaul B Mahol <onemda@gmail.com>2017-06-26 00:01:07 +0200
commit4bd4fc56abf946322fdd30fdc5cad11a309daabd (patch)
tree6c659e0e07ac453d1ef6ed6c23e378cf001c7035 /libavcodec
parent315f51128a95ca34ac3212c86b2a938330ba6b6e (diff)
downloadffmpeg-streaming-4bd4fc56abf946322fdd30fdc5cad11a309daabd.zip
ffmpeg-streaming-4bd4fc56abf946322fdd30fdc5cad11a309daabd.tar.gz
avcodec/proresenc_kostya: use frame metadata instead of avctx
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/proresenc_kostya.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c
index 25f7fcb..9f0c234 100644
--- a/libavcodec/proresenc_kostya.c
+++ b/libavcodec/proresenc_kostya.c
@@ -969,9 +969,9 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
bytestream_put_byte (&buf, frame_flags);
bytestream_put_byte (&buf, 0); // reserved
- bytestream_put_byte (&buf, avctx->color_primaries);
- bytestream_put_byte (&buf, avctx->color_trc);
- bytestream_put_byte (&buf, avctx->colorspace);
+ bytestream_put_byte (&buf, pic->color_primaries);
+ bytestream_put_byte (&buf, pic->color_trc);
+ bytestream_put_byte (&buf, pic->colorspace);
bytestream_put_byte (&buf, 0x40 | (ctx->alpha_bits >> 3));
bytestream_put_byte (&buf, 0); // reserved
if (ctx->quant_sel != QUANT_MAT_DEFAULT) {
OpenPOWER on IntegriCloud