[FFmpeg-devel] [PATCH] Enables parsing DVD color palette directly from IFO file

Nicolas George george at nsup.org
Fri Nov 14 23:41:20 CET 2014


Le quartidi 24 brumaire, an CCXXIII, Michael Niedermayer a écrit :
> libavformat OTOH could read the IFO file with avio_open2/avio_read
> into extradata or some newly added ifo specific side data
> and dvdsubdec.c could then parse the palette out of that.

That would work. It can be even reasonably simple: dvdsubdec already accepts
extradata with the Vobsub IDX syntax (the same way it is stored as codec
private data in Matroska). Unless I am mistaken, it would suffice to use a
BPrint buffer to write "palette: XXXXXX,XXXXXX..." and use
avpriv_bprint_to_extradata() afterwards.

OTOH, if Shin-ichi is not motivated to change the patch once again, I
believe the version with fopen() is acceptable if marked experimental /
temporary in the docs.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141114/93e7cb41/attachment.asc>


More information about the ffmpeg-devel mailing list