fix-vmaf-model-path.patch 1.4 KB

1234567891011121314151617181920212223242526
  1. From 37b8f54578ac1bcb7a63dc9038a5238fd6a58793 Mon Sep 17 00:00:00 2001
  2. From: Leigh Scott <leigh123linux@gmail.com>
  3. Date: Sat, 23 May 2020 12:32:44 +0100
  4. Subject: [PATCH] fix vmaf model path
  5. ---
  6. libavfilter/vf_libvmaf.c | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/libavfilter/vf_libvmaf.c b/libavfilter/vf_libvmaf.c
  9. index 14c3216b3a..e7273b6d1d 100644
  10. --- a/libavfilter/vf_libvmaf.c
  11. +++ b/libavfilter/vf_libvmaf.c
  12. @@ -72,7 +72,7 @@ typedef struct LIBVMAFContext {
  13. #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
  14. static const AVOption libvmaf_options[] = {
  15. - {"model_path", "Set the model to be used for computing vmaf.", OFFSET(model_path), AV_OPT_TYPE_STRING, {.str="/usr/local/share/model/vmaf_v0.6.1.pkl"}, 0, 1, FLAGS},
  16. + {"model_path", "Set the model to be used for computing vmaf.", OFFSET(model_path), AV_OPT_TYPE_STRING, {.str="/usr/share/model/vmaf_v0.6.1.pkl"}, 0, 1, FLAGS},
  17. {"log_path", "Set the file path to be used to store logs.", OFFSET(log_path), AV_OPT_TYPE_STRING, {.str=NULL}, 0, 1, FLAGS},
  18. {"log_fmt", "Set the format of the log (xml or json).", OFFSET(log_fmt), AV_OPT_TYPE_STRING, {.str=NULL}, 0, 1, FLAGS},
  19. {"enable_transform", "Enables transform for computing vmaf.", OFFSET(enable_transform), AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1, FLAGS},
  20. --
  21. 2.26.2