Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <clement.boesch@smartjog.com>2011-11-16 20:40:00 +0400
committerClément Bœsch <ubitux@gmail.com>2011-11-28 17:06:02 +0400
commitb1ca5634fdeac3bba8edee8a89e9246e9cb5188f (patch)
tree92bc2429d53800210b9137884f5c13e4be69a356 /libavcodec/mpeg12enc.c
parent2cf4bd7751c1920c840a3afc6dce39535def47f2 (diff)
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;
}