1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-18 21:06:00 +00:00

subs: Print a message when lavc subtitle decoding fails

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32865 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2011-02-06 14:03:10 +00:00 committed by Uoti Urpala
parent 7b49d6763a
commit 9e2b74b073

View File

@ -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;
}