1
From 776603b650485f4f2d45f383b772ac5a4f03ebfb Mon Sep 17 00:00:00 2001
2
From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= <clement.boesch@smartjog.com>
3
Date: Mon, 4 Jul 2011 10:19:46 +0200
4
Subject: [PATCH 09/70] mxfenc: fix ignored drop flag in binary timecode representation.
6
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
7
(cherry picked from commit 4d5e7ab5c48451404038706ef3113c9925a83087)
9
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11
libavformat/mxfenc.c | 2 +-
12
1 files changed, 1 insertions(+), 1 deletions(-)
14
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
15
index c448e14..387263e 100644
16
--- a/libavformat/mxfenc.c
17
+++ b/libavformat/mxfenc.c
18
@@ -1539,7 +1539,7 @@ static const uint8_t system_metadata_package_set_key[] = { 0x06,0x0E,0x2B,0x34,0
19
static uint32_t ff_framenum_to_12m_time_code(unsigned frame, int drop, int fps)
21
return (0 << 31) | // color frame flag
22
- (0 << 30) | // drop frame flag
23
+ (drop << 30) | // drop frame flag
24
( ((frame % fps) / 10) << 28) | // tens of frames
25
( ((frame % fps) % 10) << 24) | // units of frames
26
(0 << 23) | // field phase (NTSC), b0 (PAL)