]> git.sesse.net Git - ffmpeg/commit
avformat/smacker: Fix duration for PCM audio
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 24 Jul 2020 07:43:02 +0000 (09:43 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 28 Jul 2020 04:29:58 +0000 (06:29 +0200)
commit0df4e1ff930fedbcc7bf7b77acc7db101ce07c0b
tree2fe14e612dc26fb71481152771b4671b93373e92
parent40494460f51541530d8ce02ffee88b75d503e33d
avformat/smacker: Fix duration for PCM audio

For non-PCM audio, a Smacker frame contains the size of the decoded
audio in the first four bytes of the audio packet data; for PCM data,
said information would be redundant and according to [1] this field does
not exist. Therefore this commit sets the duration and timestamps
properly for PCM audio.

[1]: https://wiki.multimedia.cx/index.php/Smacker#Audio_Track_Chunk

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/smacker.c