comparison aac.c @ 11119:134644e36859 libavcodec

Output the first AAC frame. This is needed for SBR conformance.
author alexc
date Wed, 10 Feb 2010 14:51:57 +0000
parents 966a8afdd9aa
children 490544c08c48
comparison
equal deleted inserted replaced
11118:001eb7e3e2d3 11119:134644e36859
2006 return err; 2006 return err;
2007 } 2007 }
2008 2008
2009 spectral_to_sample(ac); 2009 spectral_to_sample(ac);
2010 2010
2011 if (!ac->is_saved) {
2012 ac->is_saved = 1;
2013 *data_size = 0;
2014 return buf_size;
2015 }
2016
2017 data_size_tmp = 1024 * avccontext->channels * sizeof(int16_t); 2011 data_size_tmp = 1024 * avccontext->channels * sizeof(int16_t);
2018 if (*data_size < data_size_tmp) { 2012 if (*data_size < data_size_tmp) {
2019 av_log(avccontext, AV_LOG_ERROR, 2013 av_log(avccontext, AV_LOG_ERROR,
2020 "Output buffer too small (%d) or trying to output too many samples (%d) for this frame.\n", 2014 "Output buffer too small (%d) or trying to output too many samples (%d) for this frame.\n",
2021 *data_size, data_size_tmp); 2015 *data_size, data_size_tmp);