On Sat, May 09, 2015 at 12:32:03PM +0200, Carl Eugen Hoyos wrote: > On Saturday 09 May 2015 11:00:02 am Carl Eugen Hoyos wrote: > > Hi! > > > > I believe attached patch makes vc1 gray output more correct. > > New patch attached that allows users to set the range. > > Carl Eugen
> vc1dec.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > c58c3ef00437f751d2b3f90554384aa769140e2d patchvc1range2.diff > diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c > index 86e214a..ad1d4d9 100644 > --- a/libavcodec/vc1dec.c > +++ b/libavcodec/vc1dec.c > @@ -429,8 +429,11 @@ static av_cold int vc1_decode_init(AVCodecContext *avctx) > return -1; > if (!(avctx->flags & CODEC_FLAG_GRAY)) > avctx->pix_fmt = ff_get_format(avctx, avctx->codec->pix_fmts); > - else > + else { > avctx->pix_fmt = AV_PIX_FMT_GRAY8; > + if (avctx->color_range == AVCOL_RANGE_UNSPECIFIED) > + avctx->color_range = AVCOL_RANGE_MPEG; this variant LGTM as well [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Concerning the gods, I have no means of knowing whether they exist or not or of what sort they may be, because of the obscurity of the subject, and the brevity of human life -- Protagoras
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel