« Previous | Next » 

Revision 7ade06cc

ID7ade06cc2eeb1f9521fd70098b2ae03064a91120
Parent 6ff532b9
Child 83120e3b

Added by Reimar Döffinger over 9 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.
(cherry picked from commit 2cfa2d925808e6cc6fb7a7c133b7cb7622afd37e)

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences