[FFmpeg-cvslog] prores: Always assume limited range

Vittorio Giovara git at videolan.org
Thu Nov 30 02:07:37 EET 2017


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Wed Sep 27 17:28:55 2017 -0400| [45d7be7f930cf707ead07416e10e2d0e061e99ce] | committer: Vittorio Giovara

prores: Always assume limited range

As defined by the specification.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=45d7be7f930cf707ead07416e10e2d0e061e99ce
---

 libavcodec/proresdec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/proresdec.c b/libavcodec/proresdec.c
index 8a53719d9f..1659927e66 100644
--- a/libavcodec/proresdec.c
+++ b/libavcodec/proresdec.c
@@ -176,6 +176,7 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf,
     avctx->color_primaries = buf[14];
     avctx->color_trc       = buf[15];
     avctx->colorspace      = buf[16];
+    avctx->color_range     = AVCOL_RANGE_MPEG;
 
     ctx->qmat_changed = 0;
     ptr   = buf + 20;



More information about the ffmpeg-cvslog mailing list