LAVFilters icon indicating copy to clipboard operation
LAVFilters copied to clipboard

WebM preview image detected as video track

Open clsid2 opened this issue 3 years ago • 2 comments

Sample file

The second "video" track is a preview image instead of a proper video track. Due to its slightly larger resolution it gets selected by default, breaking playback.

clsid2 avatar Jul 15 '21 22:07 clsid2

The sample link is dead

Nevcairiel avatar Sep 06 '21 10:09 Nevcairiel

Re-uploaded sample: https://www.sendspace.com/file/wuxtme

First bug is of course misdetection of coverart as a video track. The coverart is 1 pixel larger than the video. (Rounding error during file creation?)

Ignoring the misdetection for now, a simple workaround for the wrong selection:

if (checkPixels > bestPixels)
->
if (checkPixels > uint64_t(bestPixels * 1.02))

clsid2 avatar Sep 06 '21 13:09 clsid2