rtpdec_asf: Copy the need_parsing field from the chained demuxer
authorMartin Storsjö <martin@martin.st>
Thu, 23 Jan 2014 12:07:46 +0000 (14:07 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Mon, 27 Jan 2014 14:48:27 +0000 (15:48 +0100)
This fixes playback of mp3 streams in rtp/asf. This used to work
until 950482bf, but mostly by coincidence.

Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 2aec9e228cb317cca8cda9e03986c8482ea54404)

Fixes ticket #3223

libavformat/rtpdec_asf.c

index 35603f2..2074a1b 100644 (file)
@@ -144,6 +144,8 @@ static int asfrtp_parse_sdp_line(AVFormatContext *s, int stream_index,
                 if (s->streams[stream_index]->id == rt->asf_ctx->streams[i]->id) {
                     *s->streams[stream_index]->codec =
                         *rt->asf_ctx->streams[i]->codec;
+                    s->streams[stream_index]->need_parsing =
+                        rt->asf_ctx->streams[i]->need_parsing;
                     rt->asf_ctx->streams[i]->codec->extradata_size = 0;
                     rt->asf_ctx->streams[i]->codec->extradata = NULL;
                     avpriv_set_pts_info(s->streams[stream_index], 32, 1, 1000);