[FFmpeg-trac] #10540(avcodec:open): Some Meridian Lossless Packing encoded files have excess samples

FFmpeg trac at avcodec.org
Wed Aug 30 23:19:49 EEST 2023


#10540: Some Meridian Lossless Packing encoded files have excess samples
--------------------------------+-----------------------------------
             Reporter:  MGislv  |                    Owner:  (none)
                 Type:  defect  |                   Status:  open
             Priority:  normal  |                Component:  avcodec
              Version:          |               Resolution:
             Keywords:  mlp     |               Blocked By:
             Blocking:          |  Reproduced by developer:  0
Analyzed by developer:  0       |
--------------------------------+-----------------------------------
Comment (by Balling):

 Well, the reason is obvious. 44.1 kHz sampling rate has 1 102.500 FPS (40
 SPF, samples per frame). And indeed: 308720 is perfectly divided by 40,
 while 308700 is not. This is where shorten_by should be applied and it
 should remove those 20 samples. As for 10s-sine.wav​ it has 441000
 samples. That is also perfect divide. Same for sample from #4786.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10540#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list