[libav-bugs] [Bug 599] flv demuxer can't handle rtmp streamed file with broken extradata

bugzilla at libav.org bugzilla at libav.org
Sun Dec 1 00:54:20 CET 2013


http://bugzilla.libav.org/show_bug.cgi?id=599

--- Comment #5 from Benjamin Larsson <benjamin at southpole.se> 2013-12-01 00:54:19 CET ---
diff --git a/libavcodec/mpeg4audio.c b/libavcodec/mpeg4audio.c
index 0fb9b96..2f29408 100644
--- a/libavcodec/mpeg4audio.c
+++ b/libavcodec/mpeg4audio.c
@@ -125,8 +125,8 @@ int avpriv_mpeg4audio_get_config(MPEG4AudioConfig *c, const
uint8_t *buf,
                 c->ext_object_type = get_object_type(&gb);
                 if (c->ext_object_type == AOT_SBR && (c->sbr = get_bits1(&gb))
== 1)
                     c->ext_sample_rate = get_sample_rate(&gb,
&c->ext_sampling_index);
-                if (get_bits_left(&gb) > 11 && get_bits(&gb, 11) == 0x548)
-                    c->ps = get_bits1(&gb);
+//                if (get_bits_left(&gb) > 11 && get_bits(&gb, 11) == 0x548)
+//                    c->ps = get_bits1(&gb);
                 break;
             } else
                 get_bits1(&gb); // skip 1 bit


./avconv -i rtmpt_stream2\ \(1\).flv out.wav
avconv version v9-2671-g7dc827b, Copyright (c) 2000-2013 the Libav developers
  built on Dec  1 2013 00:47:38 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
[flv @ 0x1c43720] max_analyze_duration reached
Input #0, flv, from 'rtmpt_stream2 (1).flv':
  Metadata:
    Encoder         : Omnia A/XE
    StreamTitle     : 
    StreamUrl       : 
  Duration: 00:00:11.86, start: 0.000000, bitrate: N/A
    Stream #0.0: Audio: aac, 44100 Hz, stereo, fltp, 32 kb/s
Output #0, wav, to 'out.wav':
  Metadata:
    StreamUrl       : 
    StreamTitle     : 
    ISFT            : Lavf55.10.1
    Stream #0.0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (aac -> pcm_s16le)
Press ctrl-c to stop encoding
size=    2072kB time=11.91 bitrate=1424.7kbits/s    
video:0kB audio:2072kB global headers:0kB muxing overhead 0.003676%

-- 
Configure bugmail: http://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list