avfilter/vf_lut3d: do not error out if TITLE is after other lines
authorPaul B Mahol <onemda@gmail.com>
Wed, 24 Oct 2018 09:36:23 +0000 (11:36 +0200)
committerPaul B Mahol <onemda@gmail.com>
Thu, 25 Oct 2018 21:23:51 +0000 (23:23 +0200)
libavfilter/vf_lut3d.c

index 4d985c5..f328b30 100644 (file)
@@ -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)