aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2013-07-18 10:55:30 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-07-18 13:51:23 +0200
commit42272e86fea524043f800694dacc150d9d0e6dd5 (patch)
treebdc67dddfe88f89ede11335325da4eb56d79b930
parentebaf20e94b99edfa2d1fb70e68ae6eba90773a47 (diff)
downloadffmpeg-42272e86fea524043f800694dacc150d9d0e6dd5.tar.gz
lut3d: Fix reading 3dl files with leading comments.
Fixes ticket #2787.
-rw-r--r--libavfilter/vf_lut3d.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/vf_lut3d.c b/libavfilter/vf_lut3d.c
index ef1365deaf..48002b8a08 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++) {