You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
407 B

  1. --- a/src/decoder/ffmpeg_decoder_plugin.c
  2. +++ b/src/decoder/ffmpeg_decoder_plugin.c
  3. @@ -370,6 +370,13 @@
  4. #endif
  5. return SAMPLE_FORMAT_S32;
  6. +#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 94, 1)
  7. + case AV_SAMPLE_FMT_FLT:
  8. +#else
  9. + case SAMPLE_FMT_FLOAT:
  10. +#endif
  11. + return SAMPLE_FORMAT_FLOAT;
  12. +
  13. default:
  14. g_warning("Unsupported libavcodec SampleFormat value: %d",
  15. codec_context->sample_fmt);