[FFmpeg-devel] [PATCH 2/8] examples/remuxing: Fix use of uninitialized value
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Tue Oct 5 23:53:42 EEST 2021
Fixes Coverity ticket 1492326.
Regression since 53f374c08d5cc97158c17ea34b1c8ee0116c0578.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
Sorry for this.
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) {
--
2.30.2
More information about the ffmpeg-devel
mailing list