[FFmpeg-devel] [RFC] General design for subtitles demuxers
Nicolas George
nicolas.george at normalesup.org
Wed Jun 13 19:48:27 CEST 2012
Le sextidi 26 prairial, an CCXX, Clément Bœsch a écrit :
> I'm just refering here to:
>
> static int event_cmp(uint8_t **a, uint8_t **b)
> {
> return get_pts(*a) - get_pts(*b);
> }
>
> [...]
>
> qsort(ass->event, ass->event_count, sizeof(*ass->event), (void*)event_cmp);
Then yes, of course, I agree.
> We just need to find a better way of storing the events & pts; maybe to
> something simple like
>
> typedef struct {
> int64_t pts;
> uint8_t *data;
> } FFSubtitle;
>
> We will BTW be able to have a generic read_packet() as well, and greatly
> simplify again all this stuff.
As Wolfram said, there is probably already the required data structure
somewhere.
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120613/3418ef3f/attachment.asc>
More information about the ffmpeg-devel
mailing list