« Previous | Next » 

Revision 2cfa2d92

Parent f4c79d1e
Child 4bc328a2

Added by Reimar Döffinger over 10 years ago

check sample_fmt in avcodec_open

check AVCodecContext->sample_fmt against AVCodec->sample_fmts[] to ensure
that the encoder supports the specified sample format. Error out if it doesn't.
Previously, it would continue and output garbage. Fixes issue 2587.


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences