Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix decoding flac using ffmpeg.dll plugin #305

Merged

Conversation

c72578
Copy link
Collaborator

@c72578 c72578 commented Nov 16, 2023

Flac files could not be decoded anymore using ffmpeg.dll since ffmpeg
version 5.0 (4.4 and earlier were OK).

  • Using ffmpeg 4.4 or earlier, the following message appeared in the
    debug output, when decoding flac files using ffmpeg.dll:
    Invalid return value 0 for stream protocol
  • Newer versions of ffmpeg dlls like 5.0 to 6.1 did not show this
    output anymore, whereas CUETools got stuck at:
    "Analyzing input file..."
  • The problem occurred in av_read_frame() and the readPacketCallback(),
    where a value of len = 0 was returned at the end of flac files.
  • Only decoding of flac files using ffmpeg.dll was affected. Other file
    formats like aiff, ape, m4a, tta and wv could be decoded properly.
  • Return AVERROR_EOF instead of 0 in readPacketCallback()
  • Resolves [2.2.4] FLAC decoding issue with ffmpeg plugin #300

Flac files could not be decoded anymore using ffmpeg.dll since ffmpeg
version 5.0 (4.4 and earlier were OK).

- Using ffmpeg 4.4 or earlier, the following message appeared in the
  debug output, when decoding flac files using ffmpeg.dll:
  `Invalid return value 0 for stream protocol`
- Newer versions of ffmpeg dlls like 5.0 to 6.1 did not show this
  output anymore, whereas CUETools got stuck at:
  "Analyzing input file..."
- The problem occurred in av_read_frame() and the readPacketCallback(),
  where a value of `len = 0` was returned at the end of flac files.
- Only decoding of flac files using ffmpeg.dll was affected. Other file
  formats like aiff, ape, m4a, tta and wv could be decoded properly.
- Return AVERROR_EOF instead of 0 in readPacketCallback()
- Resolves gchudov#300
@c72578
Copy link
Collaborator Author

c72578 commented Nov 17, 2023

Here is a build for testing, which allows decoding flac files again using the ffmpeg.dll plugin:
CUETools_2.2.4_2023-11-17_git_271a0e7_Fix_decoding_flac_using_ffmpeg.dll.zip
SHA256: 33ad0c3c8e33f8a269640338caf6493a70c0e2341591ac1fd63c2d1152f3068b

Download links for the required ffmpeg 6.0 dlls can be found e.g. here:
#276 (comment)

@ha-korth, could you please have a look.

@c72578 c72578 merged commit 271a0e7 into gchudov:master Nov 25, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[2.2.4] FLAC decoding issue with ffmpeg plugin
1 participant