Re: [FFmpeg-devel] [PATCH]Print the actual bit depth for audio if it is different from the sample_fmt bit depth

2014-09-03 Thread Michael Niedermayer
On Wed, Sep 03, 2014 at 07:19:57AM +, Carl Eugen Hoyos wrote: > Carl Eugen Hoyos ag.or.at> writes: > > > +if (enc->bits_per_raw_sample != > > av_get_bytes_per_sample(enc->sample_fmt) * 8) > > Locally changed to "bits_per_raw_sample > 0 && ..". LGTM [...] -- Michael GnuPG fing

Re: [FFmpeg-devel] [PATCH]Print the actual bit depth for audio if it is different from the sample_fmt bit depth

2014-09-03 Thread Carl Eugen Hoyos
Carl Eugen Hoyos ag.or.at> writes: > +if (enc->bits_per_raw_sample != > av_get_bytes_per_sample(enc->sample_fmt) * 8) Locally changed to "bits_per_raw_sample > 0 && ..". Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http:/

[FFmpeg-devel] [PATCH]Print the actual bit depth for audio if it is different from the sample_fmt bit depth

2014-09-02 Thread Carl Eugen Hoyos
Hi! Attached patch makes avcodec_string() output for audio more similar to video with unexpected bit depth. Please comment, Carl Eugen diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 9d3fcfd..dfc1a04 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -2978,6 +2978,9 @@ void a