summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-01-15 13:38:03 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-03-03 16:43:11 -0500
commit5602a464c9f9e3c0922f5cfeccaf2fa1c40b2401 (patch)
tree783511b998940d65fe61a2da3f81e46bbf34cf6d /libavformat/utils.c
parent737ca4482bd68d6dc52a1811f5de8e4952ad7036 (diff)
avcodec: add a Vorbis parser to get packet duration
This also allows for removing some of the Vorbis-related hacks.
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index cf4392b581..123bc8bf9a 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -701,9 +701,6 @@ static int get_audio_frame_size(AVCodecContext *enc, int size)
{
int frame_size;
- if(enc->codec_id == CODEC_ID_VORBIS)
- return -1;
-
if (enc->frame_size <= 1) {
int bits_per_sample = av_get_bits_per_sample(enc->codec_id);
@@ -1995,8 +1992,7 @@ static int has_codec_parameters(AVCodecContext *avctx)
case AVMEDIA_TYPE_AUDIO:
val = avctx->sample_rate && avctx->channels && avctx->sample_fmt != AV_SAMPLE_FMT_NONE;
if (!avctx->frame_size &&
- (avctx->codec_id == CODEC_ID_VORBIS ||
- avctx->codec_id == CODEC_ID_AAC ||
+ (avctx->codec_id == CODEC_ID_AAC ||
avctx->codec_id == CODEC_ID_MP1 ||
avctx->codec_id == CODEC_ID_MP2 ||
avctx->codec_id == CODEC_ID_MP3 ||