[FFmpeg-cvslog] ffmpeg_opt: Make get_timecode actually return errors

Derek Buitenhuis git at videolan.org
Fri Jul 7 22:33:54 EEST 2017


ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Thu Jul  6 13:52:42 2017 -0400| [d74ba68acf30ec5395cb0c82007cc10c02d2e028] | committer: Derek Buitenhuis

ffmpeg_opt: Make get_timecode actually return errors

Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>

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

 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)



More information about the ffmpeg-cvslog mailing list