[FFmpeg-devel] [PATCH] movenc: fix warning if CONFIG_AC3_PARSER not defined
Alfred E. Heggestad
alfred.heggestad at gmail.com
Tue Jul 2 15:19:37 EEST 2019
this patch fixes a compiler warning if CONFIG_AC3_PARSER is
not defined. The label 'end' is removed and all the code
use the label 'err' instead.
---
libavformat/movenc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 46d314ff17..f1a226313e 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -5379,7 +5379,7 @@ int ff_mov_write_packet(AVFormatContext *s,
AVPacket *pkt)
if (size < 0)
return size;
else if (!size)
- goto end;
+ goto err;
avio_write(pb, pkt->data, size);
#endif
} else {
@@ -5533,7 +5533,6 @@ int ff_mov_write_packet(AVFormatContext *s,
AVPacket *pkt)
ff_mov_add_hinted_packet(s, pkt, trk->hint_track, trk->entry,
reformatted_data, size);
-end:
err:
av_free(reformatted_data);
--
2.20.1 (Apple Git-117)
More information about the ffmpeg-devel
mailing list