[FFmpeg-devel] [PATCH] Add MPL2 subtitles demuxer and decoder.

Paul B Mahol onemda at gmail.com
Thu Dec 27 18:30:01 CET 2012


On 12/27/12, Clement Boesch <ubitux at gmail.com> wrote:
> ---
>  Changelog                |   1 +
>  doc/general.texi         |   1 +
>  libavcodec/Makefile      |   1 +
>  libavcodec/allcodecs.c   |   1 +
>  libavcodec/avcodec.h     |   1 +
>  libavcodec/mpl2dec.c     |  94 +++++++++++++++++++++++++++++
>  libavcodec/version.h     |   2 +-
>  libavformat/Makefile     |   1 +
>  libavformat/allformats.c |   1 +
>  libavformat/mpl2dec.c    | 150
> +++++++++++++++++++++++++++++++++++++++++++++++
>  libavformat/version.h    |   4 +-
>  tests/fate/subtitles.mak |   3 +
>  tests/ref/fate/sub-mpl2  |   1 +
>  13 files changed, 258 insertions(+), 3 deletions(-)
>  create mode 100644 libavcodec/mpl2dec.c
>  create mode 100644 libavformat/mpl2dec.c
>  create mode 100644 tests/ref/fate/sub-mpl2
>

[...]

> +AVInputFormat ff_mpl2_demuxer = {
> +    .name           = "mpl2",
> +    .long_name      = NULL_IF_CONFIG_SMALL("MPL2 subtitles"),

Does this have more descriptive name?
> +    .priv_data_size = sizeof(MPL2Context),
> +    .read_probe     = mpl2_probe,
> +    .read_header    = mpl2_read_header,
> +    .read_packet    = mpl2_read_packet,
> +    .read_seek2     = mpl2_read_seek,
> +    .read_close     = mpl2_read_close,
> +    .extensions     = "txt,mpl2",
> +};

[...]


More information about the ffmpeg-devel mailing list