OSDN Git Service

movenc: encryption with time code track fix
authorerankor <eran.kornblau@kaltura.com>
Wed, 17 May 2017 09:32:06 +0000 (12:32 +0300)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 28 May 2017 01:05:59 +0000 (03:05 +0200)
commit15bd309af8302661838150de1905acc4df386d19
treea23927a5e7cef76fb26729659ce98067c5ce852f
parent357f2316a08478a4442e8051978c7b161e10281c
movenc: encryption with time code track fix

instead of deciding whether to encrypt based on the encryption scheme,
decide according to whether cenc was initialized or not.
mov_create_timecode_track calls ff_mov_write_packet with a track that
doesn't have cenc initialized.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/movenc.c