[FFmpeg-cvslog] avcodec/exr: remove unneed scanline_size var

Martin Vignali git at videolan.org
Mon Jun 6 15:59:57 CEST 2016


ffmpeg | branch: master | Martin Vignali <martin.vignali at gmail.com> | Sat Jun  4 14:18:48 2016 +0200| [16107aeaf31c443c010a79aaf68a6e0f1e09ef8e] | committer: Paul B Mahol

avcodec/exr: remove unneed scanline_size var

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

 libavcodec/exr.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 021f70d..dadbfd6 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -122,7 +122,6 @@ typedef struct EXRContext {
     uint32_t ymax, ymin;
     uint32_t xdelta, ydelta;
 
-    uint64_t scan_line_size;
     int scan_lines_per_block;
 
     EXRTileAttribute tile_attr; /* header data attribute of tile */
@@ -1524,8 +1523,6 @@ static int decode_header(EXRContext *s)
         }
     }
 
-    s->scan_line_size = s->xdelta * s->current_channel_offset;
-
     if (bytestream2_get_bytes_left(&s->gb) <= 0) {
         av_log(s->avctx, AV_LOG_ERROR, "Incomplete frame.\n");
         return AVERROR_INVALIDDATA;



More information about the ffmpeg-cvslog mailing list