[FFmpeg-devel] [PATCH] lavf/avienc: New AVOption write_keyframe_palette

Mats Peterson matsp888 at yahoo.com
Tue Mar 8 05:45:57 CET 2016

On 03/08/2016 02:59 AM, Mats Peterson wrote:
> On 03/07/2016 07:48 PM, Mats Peterson wrote:
>> On 03/07/2016 07:43 PM, Mats Peterson wrote:
>>> Here's a somewhat experimental patch with a new AVOption
>>> write_keyframe_palette that allows you to write the palette to every
>>> keyframe. It is disabled by default, but it is needed for any file that
>>> contains palette changes.
>> It is needed in order to switch palette properly when seeking, that is.
> It's interesting to note that Windows Media Player doesn't need xxpc
> chunks at keyframes in order to seek properly in the following original
> file from Sierra's King's Quest VI. I have of course no idea how they
> solve that.
> This original file doesn't work properly in FFplay for some reason. It
> generates "stream_ptr out of bounds" messages at the locations of the
> xxpc chunks.
> File:
> https://drive.google.com/open?id=0B3_pEBoLs0faaFY0ME92SDA1VEU
> Mats

It seems it has something to do with the index, since if I copy it to a 
new file with the last part cut off (incorrect but it will play at 
least), those "stream_ptr out of bounds" messages will disappear, and 
the palette changes will occur as expected.


More information about the ffmpeg-devel mailing list