[vlc-commits] codec: cc: fix max cc size case
Francois Cartegnie
git at videolan.org
Thu Sep 22 23:14:42 CEST 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Sep 22 23:13:35 2016 +0200| [c319ad4979500ae1a22f453c9152128d5aab2c9e] | committer: Francois Cartegnie
codec: cc: fix max cc size case
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c319ad4979500ae1a22f453c9152128d5aab2c9e
---
modules/codec/cc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/cc.h b/modules/codec/cc.h
index 44db57b..c6fd7bb 100644
--- a/modules/codec/cc.h
+++ b/modules/codec/cc.h
@@ -205,7 +205,7 @@ static inline void cc_Extract( cc_data_t *c, bool b_top_field_first, const uint8
if( i_field != 0 && i_field != 1 )
continue;
if( c->i_data + 3 > CC_MAX_DATA_SIZE )
- continue;
+ break;
cc_AppendData( c, cc[0], &cc[1] );
}
More information about the vlc-commits
mailing list