[FFmpeg-devel] [PATCH] avcodec/dpx: do not reset n_datum to 0 at end of row

Paul B Mahol onemda at gmail.com
Wed Dec 5 12:30:59 EET 2018


Fixes #4409.

Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavcodec/dpx.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/dpx.c b/libavcodec/dpx.c
index 538a1b9943..b09f65eeb6 100644
--- a/libavcodec/dpx.c
+++ b/libavcodec/dpx.c
@@ -378,7 +378,6 @@ static int decode_frame(AVCodecContext *avctx,
                     read10in32(&buf, &rgbBuffer,
                                &n_datum, endian, shift);
             }
-            n_datum = 0;
             for (i = 0; i < elements; i++)
                 ptr[i] += p->linesize[i];
         }
@@ -413,7 +412,6 @@ static int decode_frame(AVCodecContext *avctx,
                                                &n_datum, endian);
                 }
             }
-            n_datum = 0;
             for (i = 0; i < elements; i++)
                 ptr[i] += p->linesize[i];
             // Jump to next aligned position
-- 
2.17.1



More information about the ffmpeg-devel mailing list