summaryrefslogtreecommitdiffstats
path: root/sub/sd_movtext.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-06-25 00:43:04 +0200
committerwm4 <wm4@nowhere>2013-06-25 00:43:04 +0200
commit403a266d466850621397c07e0b96cc2c493b2936 (patch)
tree0835a0908b3df8cca8374d173c34e0bf7df7d842 /sub/sd_movtext.c
parent536871d7e5848eb385b97202a33b9382b5e8ab0e (diff)
parent54851d60614e912fc422658302d72811a31b80f8 (diff)
downloadmpv-403a266d466850621397c07e0b96cc2c493b2936.tar.bz2
mpv-403a266d466850621397c07e0b96cc2c493b2936.tar.xz
Merge branch 'sub_mess2'
...the return.
Diffstat (limited to 'sub/sd_movtext.c')
-rw-r--r--sub/sd_movtext.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sub/sd_movtext.c b/sub/sd_movtext.c
index a6ef120ec7..3038a4c132 100644
--- a/sub/sd_movtext.c
+++ b/sub/sd_movtext.c
@@ -42,7 +42,8 @@ static void decode(struct sd *sd, struct demux_packet *packet)
return;
len = FFMIN(len - 2, AV_RB16(data));
data += 2;
- sd_conv_add_packet(sd, data, len, packet->pts, packet->duration);
+ if (len > 0)
+ sd_conv_add_packet(sd, data, len, packet->pts, packet->duration);
}
const struct sd_functions sd_movtext = {