From 12b6992b6f25073b32773f344cb34e4864508858 Mon Sep 17 00:00:00 2001 From: Roberto Togni Date: Fri, 13 Oct 2006 18:21:28 +0000 Subject: [PATCH] flv files from myspace with mp3 audio require need_parsing because the frames are fragmented. Originally committed as revision 6686 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/flvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index d2b2b44ffb..f9eefb197d 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -176,7 +176,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) case 0: if (flags&2) st->codec->codec_id = CODEC_ID_PCM_S16BE; else st->codec->codec_id = CODEC_ID_PCM_S8; break; case 1: st->codec->codec_id = CODEC_ID_ADPCM_SWF; break; - case 2: st->codec->codec_id = CODEC_ID_MP3; break; + case 2: st->codec->codec_id = CODEC_ID_MP3; st->need_parsing = 1; break; // this is not listed at FLV but at SWF, strange... case 3: if (flags&2) st->codec->codec_id = CODEC_ID_PCM_S16LE; else st->codec->codec_id = CODEC_ID_PCM_S8; break;