projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cbf242
)
mxfenc: fix ignored drop flag in binary timecode representation.
author
Clément Bœsch
<clement.boesch@smartjog.com>
Mon, 4 Jul 2011 08:19:46 +0000
(10:19 +0200)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Tue, 5 Jul 2011 15:04:44 +0000
(08:04 -0700)
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavformat/mxfenc.c
patch
|
blob
|
history
diff --git
a/libavformat/mxfenc.c
b/libavformat/mxfenc.c
index
c87f233
..
16fa0da
100644
(file)
--- 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)