LAVFilters
LAVFilters copied to clipboard
WebM preview image detected as video track
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.
The sample link is dead
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))