changeset 32778:9404cb19e08d

Print a message when lavc subtitle decoding fails.
author reimar
date Sun, 06 Feb 2011 14:03:10 +0000
parents 9cc2689e5cd1
children 87504a38a666
files mpcommon.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpcommon.c	Sun Feb 06 13:52:05 2011 +0000
+++ b/mpcommon.c	Sun Feb 06 14:03:10 2011 +0000
@@ -202,6 +202,8 @@
             if (is_av_sub(type)) {
 #ifdef CONFIG_FFMPEG
                 type = decode_avsub(d_dvdsub->sh, &packet, &len, &subpts, &endpts);
+                if (type < 0)
+                    mp_msg(MSGT_SPUDEC, MSGL_WARN, "lavc failed decoding subtitle\n");
                 if (type <= 0)
 #endif
                     continue;