Only use valid SampleFormat for audio encoders/decoders.
For a given AVCodec, when the sample_fmts field is non-NULL, that means that that codec can only handle a specific set of SampleFormat. With this patch, we now look for its presence and create the proper pad template caps. Fixes #569441
Showing with 87 additions and 41 deletions