[FFmpeg-devel] [PATCH 05/15] libavformat/flacdec: Export samples md5 as metadata
Tomas Härdin
git at haerdin.se
Tue Oct 29 17:01:05 EET 2024
tis 2024-10-29 klockan 11:57 -0300 skrev James Almer:
> On 10/29/2024 11:47 AM, Tomas Härdin wrote:
> > Could maybe use some kind of compile-time assert that
> > FLAC_STREAMINFO_SIZE == MD5_BYTE_SIZE + 18. I'm thinking putting in
> > st-
> > > codecpar->extradata + st->codecpar->extradata_size -
> > > MD5_BYTE_SIZE for
> > the offset
> >
> > Spotify comments
> > ----------------
> > Make it possible to verify sample checksum for FLAC files
> >
> > Possible other solutions:
> > • Make ffmpeg FLAC demuxer capable of optionally check sample
> > checksum. One tricky thing is that we currently have heuristics to
> > not
> > trust the checksums based on other metadata (known broken
> > transcoding
> > software)
>
> If this is available in extradata, why export it a second time as
> metadata?
Good question. My guess is it's because extradata isn't available in
ffprobe output
/Tomas
More information about the ffmpeg-devel
mailing list