On 06/15/2011 05:01 AM, Diego Biurrun wrote: > On Mon, Jun 13, 2011 at 03:08:37PM -0400, Justin Ruggles wrote: >> >> av_get_bits_per_sample_fmt() is deprecated. >> --- >> >> --- a/libavcodec/ac3dec.c >> +++ b/libavcodec/ac3dec.c >> @@ -1422,7 +1422,7 @@ static int ac3_decode_frame(AVCodecContext * avctx, >> void *data, int *data_size, >> } >> } >> *data_size = s->num_blocks * 256 * avctx->channels * >> - (av_get_bits_per_sample_fmt(avctx->sample_fmt) / 8); >> + av_get_bytes_per_sample(avctx->sample_fmt); >> return FFMIN(buf_size, s->frame_size); > > Here and in other places you should add the required > libavutil/samplefmt.h #include.
sure. I can do that in a separate commit. Both the old and new function require libavutil/samplefmt.h. -Justin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
