> -----Original Message-----
> From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of Sasi 
> Inguva
> Sent: Friday, January 6, 2017 8:25 AM
> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
> Subject: Re: [FFmpeg-devel] mov: support for multiple edits and cenc 
> decryption
> 
> I agree . #4 makes the most sense.
> 
> 
Patch attached.

A couple of notes about the implementation:
1. I added functions for updating MOVStreamContext::current_sample - inc / dec 
/ set, all changes
to this field are done using these functions.
In addition to applying the change to current_sample, these functions keep 
track of the frame index
in a new field called current_index.
2. mov_fix_index initializes a new array 'index_ranges' with the start/end 
values of each edit.
The array is null terminated (end = 0).
3. A new field called auxiliary_info_index keeps track of the index of the 
frame whose auxiliary info
matches auxiliary_info_pos - these 2 fields are always updated together.
4. In cenc_filter, if the auxiliary info index does not match the current frame 
index, the auxiliary info 
position is recalculated, using the code that was added previously for 
supporting seek.

Thanks

Eran

Attachment: 0001-mov-fix-decryption-with-edit-list.patch
Description: 0001-mov-fix-decryption-with-edit-list.patch

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to