[FFmpeg-cvslog] rtpdec_asf: Copy the need_parsing field from the chained demuxer

Martin Storsjö git at videolan.org
Mon Jan 27 15:49:19 CET 2014


ffmpeg | branch: release/2.1 | Martin Storsjö <martin at martin.st> | Thu Jan 23 14:07:46 2014 +0200| [d0e0329e9d3d2a330dfe9e66d2b30aa6e36db5d6] | committer: Carl Eugen Hoyos

rtpdec_asf: Copy the need_parsing field from the chained demuxer

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 at martin.st>
(cherry picked from commit 2aec9e228cb317cca8cda9e03986c8482ea54404)

Fixes ticket #3223

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d0e0329e9d3d2a330dfe9e66d2b30aa6e36db5d6
---

 libavformat/rtpdec_asf.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/rtpdec_asf.c b/libavformat/rtpdec_asf.c
index 123894f..541b86f 100644
--- a/libavformat/rtpdec_asf.c
+++ b/libavformat/rtpdec_asf.c
@@ -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);



More information about the ffmpeg-cvslog mailing list