Re: [FFmpeg-devel] [PATCH v4] Add SUP/PGS subtitle demuxer

2014-08-31 Thread Reimar Döffinger
On Mon, Sep 01, 2014 at 12:05:23AM +0200, wm4 wrote: > +for (nb_packets = 0; nb_packets < 10; nb_packets++) { > +size_t full_packet_size; > +if (buf_size < 10 + 3) > +break; > +if (memcmp(buf, "PG", 2)) > +return 0; AV_RB16(buf) != SUP_PGS_MAGIC

[FFmpeg-devel] [PATCH v4] Add SUP/PGS subtitle demuxer

2014-08-31 Thread wm4
--- Integrating Reimar's suggestions. No changes outside of the probe function. --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/supdec.c | 107 +++ 3 files changed, 109 insertions(+) create mode 100644 libavformat