[vlc-commits] codec: cc: fix replaytv field ordering
Francois Cartegnie
git at videolan.org
Sun Oct 30 14:06:18 CET 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Oct 29 16:52:48 2016 +0200| [de94ab5f3d5af49a287a9ad5c69e751782167ca1] | committer: Francois Cartegnie
codec: cc: fix replaytv field ordering
guess from samples
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=de94ab5f3d5af49a287a9ad5c69e751782167ca1
---
modules/codec/cc.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/codec/cc.h b/modules/codec/cc.h
index 8416821..a62d176 100644
--- a/modules/codec/cc.h
+++ b/modules/codec/cc.h
@@ -258,7 +258,8 @@ static inline void cc_Extract( cc_data_t *c, bool b_top_field_first, const uint8
{
if( c->i_data + 3 > CC_MAX_DATA_SIZE )
return;
- cc_AppendData( c, CC_PKT_BYTE0(i_cc_count % 2), &cc[2] );
+ uint8_t i_field = (cc[0] & 0x02) >> 1;
+ cc_AppendData( c, CC_PKT_BYTE0(i_field), &cc[2] );
}
c->b_reorder = false;
}
More information about the vlc-commits
mailing list