[FFmpeg-cvslog] mpeg12enc: fix drop_frame_timecode value
Matthieu Bouron
git at videolan.org
Fri Dec 16 15:33:45 CET 2011
ffmpeg | branch: release/0.9 | Matthieu Bouron <matthieu.bouron at smartjog.com> | Wed Dec 14 14:30:39 2011 +0100| [6db6fe82cae8b61b769144a479213f7d8d5c1549] | committer: Michael Niedermayer
mpeg12enc: fix drop_frame_timecode value
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 366605ff5dc1471304e8999b8961bc9e4417fc5a)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6db6fe82cae8b61b769144a479213f7d8d5c1549
---
libavcodec/mpeg12enc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c
index 3cfe733..1c620c8 100644
--- a/libavcodec/mpeg12enc.c
+++ b/libavcodec/mpeg12enc.c
@@ -184,6 +184,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
s->tc.rate = avpriv_frame_rate_tab[s->frame_rate_index];
if (ff_init_smtpe_timecode(s, &s->tc) < 0)
return -1;
+ s->drop_frame_timecode = s->tc.drop;
s->avctx->timecode_frame_start = s->tc.start;
} else {
s->avctx->timecode_frame_start = 0; // default is -1
More information about the ffmpeg-cvslog
mailing list