]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vorbisdec.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / vorbisdec.c
index e012f611a9669eb02dfee432ca56532815f395f9..2d91ca1317800e8e21ae04690ec7356f93c1a12a 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+/**
+ * @file
+ * Vorbis I decoder
+ * @author Denes Balatoni  ( dbalatoni programozo hu )
+ */
+
 #include <inttypes.h>
 #include <math.h>
 
@@ -1646,7 +1652,7 @@ static int vorbis_decode_frame(AVCodecContext *avccontext,
                                                vc->audio_channels);
 
     *data_size = len * vc->audio_channels *
-                 (av_get_bits_per_sample_fmt(avccontext->sample_fmt) / 8);
+                 av_get_bytes_per_sample(avccontext->sample_fmt);
 
     return buf_size ;
 }