[FFmpeg-soc] [soc]: r3045 - aac/aac.c

superdump subversion at mplayerhq.hu
Wed Aug 6 11:24:35 CEST 2008


Author: superdump
Date: Wed Aug  6 11:24:34 2008
New Revision: 3045

Log:
Add assignments of new supported output sample formats, AVCodec.sample_fmts,
and actual output sample format, AVCodecContext.sample_fmt


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Wed Aug  6 11:24:34 2008
@@ -476,6 +476,7 @@ static av_cold int aac_decode_init(AVCod
         audio_specific_config(ac, avccontext->extradata, avccontext->extradata_size))
         return -1;
 
+    avccontext->sample_fmt  = SAMPLE_FMT_S16;
     avccontext->sample_rate = ac->m4ac.sample_rate;
     avccontext->frame_size  = 1024;
 
@@ -1988,5 +1989,6 @@ AVCodec aac_decoder = {
     aac_decode_close,
     aac_decode_frame,
     .long_name = NULL_IF_CONFIG_SMALL("Advanced Audio Coding"),
+    .sample_fmts = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE},
 };
 



More information about the FFmpeg-soc mailing list