[FFmpeg-devel] [PATCH]Read bits_per_coded_sample from mkv files
Carl Eugen Hoyos
cehoyos at ag.or.at
Tue Feb 25 14:37:12 CET 2014
Michael Niedermayer <michaelni <at> gmx.at> writes:
> On Tue, Feb 25, 2014 at 12:12:10AM +0000, Carl Eugen Hoyos wrote:
> > Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:
> >
> > > + unsigned bit_depth;
> >
> > locally changed to:
> > unsigned bit_depth = 0;
>
> i suggest you only set bits_per_coded_sample when its stored in
> the bitstream and not force it to 0
Do you mean I should initialize the variable to -1 and
set bits_per_coded_sample to 0 if that's what's written
in the bitstream or only set bits_per_coded_sample if
bit_depth > 0?
Carl Eugen
More information about the ffmpeg-devel
mailing list