[FFmpeg-cvslog] avcodec/sheervideo: fix argx format support

Paul B Mahol git at videolan.org
Fri Jun 10 17:28:02 CEST 2016


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Jun 10 13:04:29 2016 +0200| [f0e7b0645335c040dda613ddb6dd2e20a436dbb6] | committer: Paul B Mahol

avcodec/sheervideo: fix argx format support

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libavcodec/sheervideo.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/sheervideo.c b/libavcodec/sheervideo.c
index 7304548..bbbdb83 100644
--- a/libavcodec/sheervideo.c
+++ b/libavcodec/sheervideo.c
@@ -1990,7 +1990,7 @@ static void decode_argx(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
             dst_b[x] = get_bits(gb, 10);
         }
     } else {
-        int pred[4] = { 512, 512, 512, 0 };
+        int pred[4] = { 512, 512, 512, 512 };
 
         for (x = 0; x < avctx->width; x++) {
             int r, g, b, a;
@@ -2463,7 +2463,7 @@ static int decode_frame(AVCodecContext *avctx,
         }
         break;
     case MKTAG('A', 'R', 'G', 'X'):
-        avctx->pix_fmt = AV_PIX_FMT_GBRAP12;
+        avctx->pix_fmt = AV_PIX_FMT_GBRAP10;
         s->decode_frame = decode_argx;
         if (s->format != format) {
             build_vlc(&s->vlc[0], l_r_rgbx, 1024);



More information about the ffmpeg-cvslog mailing list