aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpeg12enc.c
diff options
context:
space:
mode:
authorClément Bœsch <clement.boesch@smartjog.com>2011-11-16 17:40:00 +0100
committerClément Bœsch <ubitux@gmail.com>2011-11-28 14:06:02 +0100
commitb1ca5634fdeac3bba8edee8a89e9246e9cb5188f (patch)
tree92bc2429d53800210b9137884f5c13e4be69a356 /libavcodec/mpeg12enc.c
parent2cf4bd7751c1920c840a3afc6dce39535def47f2 (diff)
downloadffmpeg-b1ca5634fdeac3bba8edee8a89e9246e9cb5188f.tar.gz
mpeg12: raise timecode to codec context.
Diffstat (limited to 'libavcodec/mpeg12enc.c')
-rw-r--r--libavcodec/mpeg12enc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c
index 653fb4015c..3cfe733139 100644
--- a/libavcodec/mpeg12enc.c
+++ b/libavcodec/mpeg12enc.c
@@ -185,6 +185,8 @@ static av_cold int encode_init(AVCodecContext *avctx)
if (ff_init_smtpe_timecode(s, &s->tc) < 0)
return -1;
s->avctx->timecode_frame_start = s->tc.start;
+ } else {
+ s->avctx->timecode_frame_start = 0; // default is -1
}
return 0;
}