4. Could you add some exportable function to detect bits per sample for a given
pixel format? As I understand it is impossible currently since field
bits_per_coded_sample in AVCodecContext structure is not filled by some
decoders.
I am by no means an expert in ffmpeg, but I don't think every sample has
the same number of bits. You could, however, use something like
avpicture_get_size( pix_fmt , width, height) / (width * height)
to get the bits per pixel. Its kind of a hack, but I tried looking
through the avpicture_get_size function, and apparently it just makes a
dummy image and returns the size.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user