[FFmpeg-cvslog] avformat/asfdec: Use a parser for mpeg4-asp to find has_b_frames

Michael Niedermayer git at videolan.org
Tue Jun 3 15:31:39 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jun  3 14:44:46 2014 +0200| [72e4ceeb7977aa1fde8069ac86c32988e6a0b0c6] | committer: Michael Niedermayer

avformat/asfdec: Use a parser for mpeg4-asp to find has_b_frames

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index a7d8609..03f4b20 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -501,6 +501,8 @@ static int asf_read_stream_properties(AVFormatContext *s, int64_t size)
         }
         if (st->codec->codec_id == AV_CODEC_ID_H264)
             st->need_parsing = AVSTREAM_PARSE_FULL_ONCE;
+        if (st->codec->codec_id == AV_CODEC_ID_MPEG4)
+            st->need_parsing = AVSTREAM_PARSE_FULL_ONCE;
     }
     pos2 = avio_tell(pb);
     avio_skip(pb, size - (pos2 - pos1 + 24));



More information about the ffmpeg-cvslog mailing list