diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-01-13 18:20:18 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-29 15:45:50 -0500 |
commit | bdbf1fa405fbbf9c99fd9abff350d228f27304d0 (patch) | |
tree | 2d6f962936df87bfe5bfaed747fe336df4ba1f41 | |
parent | 4bf6775e9d4a499ca1c25a5e13ff3d055d9219f5 (diff) | |
download | ffmpeg-bdbf1fa405fbbf9c99fd9abff350d228f27304d0.tar.gz |
asfdec: Do not set AVCodecContext.frame_size
-rw-r--r-- | libavformat/asfdec.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 8828eb583c..07899609c9 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -26,7 +26,6 @@ #include "libavutil/avstring.h" #include "libavutil/dict.h" #include "libavutil/mathematics.h" -#include "libavcodec/mpegaudio.h" #include "avformat.h" #include "internal.h" #include "avio_internal.h" @@ -323,25 +322,6 @@ static int asf_read_stream_properties(AVFormatContext *s, int64_t size) || asf_st->ds_packet_size % asf_st->ds_chunk_size) asf_st->ds_span = 0; // disable descrambling } - switch (st->codec->codec_id) { - case CODEC_ID_MP3: - st->codec->frame_size = MPA_FRAME_SIZE; - break; - case CODEC_ID_PCM_S16LE: - case CODEC_ID_PCM_S16BE: - case CODEC_ID_PCM_U16LE: - case CODEC_ID_PCM_U16BE: - case CODEC_ID_PCM_S8: - case CODEC_ID_PCM_U8: - case CODEC_ID_PCM_ALAW: - case CODEC_ID_PCM_MULAW: - st->codec->frame_size = 1; - break; - default: - /* This is probably wrong, but it prevents a crash later */ - st->codec->frame_size = 1; - break; - } } else if (type == AVMEDIA_TYPE_VIDEO && size - (avio_tell(pb) - pos1 + 24) >= 51) { avio_rl32(pb); |