Nessuna descrizione

200-allow-float-samples-ffmpeg.patch 407B

12345678910111213141516
  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);