[FFmpeg-devel] mp4 encryption with time code track

Eran Kornblau eran.kornblau at kaltura.com
Wed May 24 19:35:44 EEST 2017


Ping

Eran

From: Eran Kornblau
Sent: Wednesday, May 17, 2017 12:50 PM
To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
Subject: mp4 encryption with time code track

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/20170524/64a5734a/attachment.obj>


More information about the ffmpeg-devel mailing list