# HG changeset patch # User cboesch # Date 1366322093 0 # Node ID c297c1a78ae60011e4f4e9cd10c3f31e806c0af9 # Parent bb7b0b97c1e49e6963024eb1e89f9b4d073e49d7 Add support for AV_CODEC_ID_ASS. Lavf/mkv will output proper ASS packet at next bump. MPlayer code base already supports such packets, so only a trivial change is required. See 7c1a002c78f15470f76d5c03e619b954d1a22839 in FFmpeg git history for more information. diff -r bb7b0b97c1e4 -r c297c1a78ae6 libmpdemux/demux_lavf.c --- a/libmpdemux/demux_lavf.c Mon Apr 15 02:23:17 2013 +0000 +++ b/libmpdemux/demux_lavf.c Thu Apr 18 21:54:53 2013 +0000 @@ -441,7 +441,11 @@ type = 't'; else if (codec->codec_id == AV_CODEC_ID_MOV_TEXT) type = 'm'; - else if (codec->codec_id == AV_CODEC_ID_SSA) + else if (codec->codec_id == AV_CODEC_ID_SSA +#if LIBAVUTIL_VERSION_MICRO >= 100 + || codec->codec_id == AV_CODEC_ID_ASS +#endif /* LIBAVUTIL_VERSION_MICRO >= 100 */ + ) type = 'a'; else if (codec->codec_id == AV_CODEC_ID_DVD_SUBTITLE) type = 'v';