aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg_opt.c
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2017-07-06 13:52:42 -0400
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2017-07-07 15:27:22 -0400
commitd74ba68acf30ec5395cb0c82007cc10c02d2e028 (patch)
tree508a5e2e967c48f888b810c0eb051e35efb8b588 /ffmpeg_opt.c
parent179bf86fa2f5f24d12e625c58ca08223a1e32093 (diff)
downloadffmpeg-d74ba68acf30ec5395cb0c82007cc10c02d2e028.tar.gz
ffmpeg_opt: Make get_timecode actually return errors
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'ffmpeg_opt.c')
-rw-r--r--ffmpeg_opt.c2
1 files changed, 1 insertions, 1 deletions
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)