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.

24 lines
728 B

  1. --- a/src/decoder/ffmpeg_decoder_plugin.c
  2. +++ b/src/decoder/ffmpeg_decoder_plugin.c
  3. @@ -387,6 +387,13 @@ ffmpeg_probe(struct decoder *decoder, st
  4. unsigned char *buffer = g_malloc(BUFFER_SIZE);
  5. size_t nbytes = decoder_read(decoder, is, buffer, BUFFER_SIZE);
  6. +
  7. + if ((nbytes > 0) && (nbytes < 1024))
  8. + {
  9. + // Gobble some more data if header is small
  10. + nbytes += decoder_read(decoder, is, buffer + nbytes, BUFFER_SIZE - nbytes);
  11. + }
  12. +
  13. if (nbytes <= PADDING ||
  14. !input_stream_lock_seek(is, 0, SEEK_SET, NULL)) {
  15. g_free(buffer);
  16. @@ -683,6 +690,7 @@ static const char *const ffmpeg_mime_typ
  17. "audio/qcelp",
  18. "audio/vorbis",
  19. "audio/vorbis+ogg",
  20. + "audio/wav",
  21. "audio/x-8svx",
  22. "audio/x-16sv",
  23. "audio/x-aac",