[FFmpeg-cvslog] avfilter/vf_lut3d: do not error out if TITLE is after other lines

Paul B Mahol git at videolan.org
Fri Oct 26 00:24:43 EEST 2018


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Oct 24 11:36:23 2018 +0200| [963c16ed38fb7bb5a5d93c6cca6326ac6a53de6f] | committer: Paul B Mahol

avfilter/vf_lut3d: do not error out if TITLE is after other lines

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

 libavfilter/vf_lut3d.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavfilter/vf_lut3d.c b/libavfilter/vf_lut3d.c
index 4d985c599f..f328b30a8f 100644
--- a/libavfilter/vf_lut3d.c
+++ b/libavfilter/vf_lut3d.c
@@ -411,6 +411,8 @@ try_again:
                                 av_log(ctx, AV_LOG_DEBUG, "min: %f %f %f | max: %f %f %f\n",
                                        min[0], min[1], min[2], max[0], max[1], max[2]);
                                 goto try_again;
+                            } else if (!strncmp(line, "TITLE", 5)) {
+                                goto try_again;
                             }
                         } while (skip_line(line));
                         if (sscanf(line, "%f %f %f", &vec->r, &vec->g, &vec->b) != 3)
@@ -1051,6 +1053,8 @@ try_again:
                         min[1] = min[2] = min[0];
                         max[1] = max[2] = max[0];
                         goto try_again;
+                    } else if (!strncmp(line, "TITLE", 5)) {
+                        goto try_again;
                     }
                 } while (skip_line(line));
                 if (sscanf(line, "%f %f %f", &lut1d->lut[0][i], &lut1d->lut[1][i], &lut1d->lut[2][i]) != 3)



More information about the ffmpeg-cvslog mailing list