[FFmpeg-cvslog] mxfenc: fix ignored drop flag in binary timecode representation.

Clément Bœsch git at videolan.org
Thu Sep 22 01:17:20 CEST 2011


ffmpeg | branch: release/0.8 | Clément Bœsch <clement.boesch at smartjog.com> | Mon Jul  4 10:19:46 2011 +0200| [694279bfd2452c58a7b7ce6424dfba785a99fedd] | committer: Anton Khirnov

mxfenc: fix ignored drop flag in binary timecode representation.

Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>
(cherry picked from commit 4d5e7ab5c48451404038706ef3113c9925a83087)

Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

 libavformat/mxfenc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index c448e14..387263e 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -1539,7 +1539,7 @@ static const uint8_t system_metadata_package_set_key[] = { 0x06,0x0E,0x2B,0x34,0
 static uint32_t ff_framenum_to_12m_time_code(unsigned frame, int drop, int fps)
 {
     return (0                                    << 31) | // color frame flag
-           (0                                    << 30) | // drop  frame flag
+           (drop                                 << 30) | // drop  frame flag
            ( ((frame % fps) / 10)                << 28) | // tens  of frames
            ( ((frame % fps) % 10)                << 24) | // units of frames
            (0                                    << 23) | // field phase (NTSC), b0 (PAL)



More information about the ffmpeg-cvslog mailing list