[FFmpeg-cvslog] examples/remuxing: Fix use of uninitialized value

Andreas Rheinhardt git at videolan.org
Thu Oct 7 13:06:14 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Oct  5 21:02:07 2021 +0200| [b6aeee2d8bedcd8cfc6aa91cc124c904a78adb1e] | committer: Andreas Rheinhardt

examples/remuxing: Fix use of uninitialized value

Fixes Coverity ticket 1492326.
Regression since 53f374c08d5cc97158c17ea34b1c8ee0116c0578.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 doc/examples/remuxing.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/examples/remuxing.c b/doc/examples/remuxing.c
index 9ffffded91..2657f9dc66 100644
--- a/doc/examples/remuxing.c
+++ b/doc/examples/remuxing.c
@@ -68,7 +68,7 @@ int main(int argc, char **argv)
     pkt = av_packet_alloc();
     if (!pkt) {
         fprintf(stderr, "Could not allocate AVPacket\n");
-        goto end;
+        return 1;
     }
 
     if ((ret = avformat_open_input(&ifmt_ctx, in_filename, 0, 0)) < 0) {



More information about the ffmpeg-cvslog mailing list