[gegl] Stop stream info parsing if avformat_open_input failed



commit 7e19debd83f0658b59fc86c214332ded4f935035
Author: Behnam Momeni <sbmomeni gmail com>
Date:   Mon Mar 21 12:49:00 2022 +0330

    Stop stream info parsing if avformat_open_input failed

 operations/external/ff-load.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/operations/external/ff-load.c b/operations/external/ff-load.c
index 32d3fce91..ec3b747f9 100644
--- a/operations/external/ff-load.c
+++ b/operations/external/ff-load.c
@@ -467,6 +467,7 @@ prepare (GeglOperation *operation)
       if (err < 0)
         {
           print_error (o->path, err);
+          return;
         }
       err = avformat_find_stream_info (p->video_fcontext, NULL);
       if (err < 0)
@@ -478,6 +479,7 @@ prepare (GeglOperation *operation)
       if (err < 0)
         {
           print_error (o->path, err);
+          return;
         }
       err = avformat_find_stream_info (p->audio_fcontext, NULL);
       if (err < 0)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]