[FFmpeg-devel] [PATCH]Fix current duration for *law in aiff
Carl Eugen Hoyos
cehoyos at ag.or.at
Sat Aug 25 14:09:27 CEST 2012
Hi!
Attached patch fixes ticket #1660 for me.
Please review, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c
index 83fa9c3..de0f11a 100644
--- a/libavformat/aiffdec.c
+++ b/libavformat/aiffdec.c
@@ -129,9 +129,11 @@ static unsigned int get_aiff_header(AVFormatContext *s, int size,
case AV_CODEC_ID_PCM_F32BE:
case AV_CODEC_ID_PCM_F64BE:
case AV_CODEC_ID_PCM_S16LE:
+ aiff->block_duration = 1;
+ break;
case AV_CODEC_ID_PCM_ALAW:
case AV_CODEC_ID_PCM_MULAW:
- aiff->block_duration = 1;
+ codec->block_align = codec->channels;
break;
case AV_CODEC_ID_ADPCM_IMA_QT:
codec->block_align = 34*codec->channels;
More information about the ffmpeg-devel
mailing list