[FFmpeg-trac] #4540(avcodec:new): ADX sample count is not written to ADX header
FFmpeg
trac at avcodec.org
Fri May 8 19:16:03 CEST 2015
#4540: ADX sample count is not written to ADX header
------------------------------------+-----------------------------------
Reporter: misty | Owner:
Type: defect | Status: new
Priority: normal | Component: avcodec
Version: git-master | Resolution:
Keywords: adpcm adx | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+-----------------------------------
Comment (by misty):
You can calculate the size given the stream offset and the final size of
the file, by doing:
(file_size - stream_offset) / channel_count / frame_size *
samples_per_frame
For example, I encoded a stereo file in FFmpeg which ended up at 8643060
bytes long; according to the header written by FFmpeg, the first frame is
located at 36 bytes, and the frame size is the standard 18 bytes
containing 32 samples, so the file is 7682688 samples. If I use a hex
editor to change the 4 bytes starting at 0xC to 00753A80 then all three
decoders I've tested with interpret the file correctly.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4540#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list