[FFmpeg-devel] mp4 encryption with time code track

Eran Kornblau eran.kornblau at kaltura.com
Wed May 17 12:49:31 EEST 2017


Hi all,

We bumped into an issue with the mp4 encryption support we submitted a while ago -
in case ffmpeg decides to write a timecode track in the output mp4, it crashes.
The reason is that mov_create_timecode_track calls ff_mov_write_packet on a track that doesn't
have 'cenc' initialized, this in turn causes a null dereference.
The suggested fix is to change the 'if's that decide whether to encrypt to check whether 'cenc'
was initialized, instead of checking whether some encryption scheme was set.

Patch attached

Thanks,

Eran
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-movenc-encryption-with-time-code-track-fix.patch
Type: application/octet-stream
Size: 2073 bytes
Desc: 0001-movenc-encryption-with-time-code-track-fix.patch
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170517/6ca2641b/attachment.obj>


More information about the ffmpeg-devel mailing list