aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-19 17:04:23 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-23 01:05:17 +0100
commit47d0b86cf3d83abdcf60c5c224bbf6f4a0198d5d (patch)
treef43ec20ce3b38614334ff572c56e35b87f6000af /libavformat
parent2fccd8bfb967276e2b780c446fd7ff9210205cf5 (diff)
downloadffmpeg-47d0b86cf3d83abdcf60c5c224bbf6f4a0198d5d.tar.gz
avformat/s337m: Use and test Dolby-E-parser
This makes av_read_frame() return packets with proper timestamps. As a result, seeking now works in combination with streamcopy. A FATE-test for this has been added. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/s337m.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/s337m.c b/libavformat/s337m.c
index 36e1047af8..9e3c8ed1ba 100644
--- a/libavformat/s337m.c
+++ b/libavformat/s337m.c
@@ -189,6 +189,7 @@ static int s337m_read_packet(AVFormatContext *s, AVPacket *pkt)
}
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
st->codecpar->codec_id = codec;
+ st->need_parsing = AVSTREAM_PARSE_HEADERS;
}
return 0;