diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-07-18 10:55:30 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-07-18 13:51:23 +0200 |
commit | 42272e86fea524043f800694dacc150d9d0e6dd5 (patch) | |
tree | bdc67dddfe88f89ede11335325da4eb56d79b930 | |
parent | ebaf20e94b99edfa2d1fb70e68ae6eba90773a47 (diff) | |
download | ffmpeg-42272e86fea524043f800694dacc150d9d0e6dd5.tar.gz |
lut3d: Fix reading 3dl files with leading comments.
Fixes ticket #2787.
-rw-r--r-- | libavfilter/vf_lut3d.c | 3 |
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++) { |