[FFmpeg-devel] [PATCH 06/12] ffmpeg_opt: Make get_timecode actually return errors
Derek Buitenhuis
derek.buitenhuis at gmail.com
Thu Jul 6 21:28:36 EEST 2017
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
ffmpeg_opt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index 9b7e8c74b9..989391bb34 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -3072,7 +3072,7 @@ static int opt_timecode(void *optctx, const char *opt, const char *arg)
if (ret >= 0)
ret = av_dict_set(&o->g->codec_opts, "gop_timecode", arg, 0);
av_free(tcr);
- return 0;
+ return ret;
}
static int opt_channel_layout(void *optctx, const char *opt, const char *arg)
--
2.11.0
More information about the ffmpeg-devel
mailing list