[FFmpeg-cvslog] lut3d: Fix reading 3dl files with leading comments.

Carl Eugen Hoyos git at videolan.org
Thu Jul 18 18:51:19 CEST 2013


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Jul 18 10:55:30 2013 +0200| [42272e86fea524043f800694dacc150d9d0e6dd5] | committer: Carl Eugen Hoyos

lut3d: Fix reading 3dl files with leading comments.

Fixes ticket #2787.

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

 libavfilter/vf_lut3d.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavfilter/vf_lut3d.c b/libavfilter/vf_lut3d.c
index ef1365d..48002b8 100644
--- a/libavfilter/vf_lut3d.c
+++ b/libavfilter/vf_lut3d.c
@@ -314,8 +314,7 @@ static int parse_3dl(AVFilterContext *ctx, FILE *f)
     const float scale = 16*16*16;
 
     lut3d->lutsize = size;
-    if (!fgets(line, sizeof(line), f))
-        return AVERROR_INVALIDDATA;
+    NEXT_LINE(skip_line(line));
     for (k = 0; k < size; k++) {
         for (j = 0; j < size; j++) {
             for (i = 0; i < size; i++) {



More information about the ffmpeg-cvslog mailing list