diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2011-02-06 14:03:10 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2011-02-15 19:28:59 +0200 |
commit | 9e2b74b073f28673d12b4445de3e189cad18b442 (patch) | |
tree | d7a325be30b0b829e450fc59529b9e32adadbdf7 | |
parent | 7b49d6763ae88059da80c89cdd05cd3ba07cbba3 (diff) | |
download | mpv-9e2b74b073f28673d12b4445de3e189cad18b442.tar.bz2 mpv-9e2b74b073f28673d12b4445de3e189cad18b442.tar.xz |
subs: Print a message when lavc subtitle decoding fails
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32865 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | mplayer.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1928,7 +1928,10 @@ void update_subtitles(struct MPContext *mpctx, double refpts, len = ds_get_packet_sub(d_sub, &packet); if (is_av_sub(type)) { #ifdef CONFIG_FFMPEG - decode_avsub(sh_sub, packet, len, subpts, duration); + int ret = decode_avsub(sh_sub, packet, len, subpts, duration); + if (ret < 0) + mp_msg(MSGT_SPUDEC, MSGL_WARN, "lavc failed decoding " + "subtitle\n"); #endif continue; } |