summaryrefslogtreecommitdiff
path: root/libavformat/microdvddec.c
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2015-04-08 19:55:04 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-08 20:58:25 +0200
commit48f27b78f4bcb26fc214f8815427e615adbfda40 (patch)
treeffafc78b55075491186e53925345931b1d2e347c /libavformat/microdvddec.c
parentedaca0812a05523b82039d5be6b1aa069b68b9c6 (diff)
downloadffmpeg-48f27b78f4bcb26fc214f8815427e615adbfda40.tar.gz
microdvd: do not export framerate hint as subtitle packet
MicroDVD has a "hack" for specifying the video framerate the subtitle was authored against. The demuxer reads this hint correctly, but didn't skip it correctly. This was not noticed, because the exported packet has its duration set to 0, making it invisible (depending on the API user's rendering logic). Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/microdvddec.c')
-rw-r--r--libavformat/microdvddec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/microdvddec.c b/libavformat/microdvddec.c
index ce3433cf25..a3839051a4 100644
--- a/libavformat/microdvddec.c
+++ b/libavformat/microdvddec.c
@@ -112,6 +112,7 @@ static int microdvd_read_header(AVFormatContext *s)
&& frame <= 1 && fps > 3 && fps < 100) {
pts_info = av_d2q(fps, 100000);
has_real_fps = 1;
+ continue;
}
if (!st->codec->extradata && sscanf(line, "{DEFAULT}{}%c", &c) == 1) {
st->codec->extradata = av_strdup(line + 11);