[vlc-devel] Bug? pixel size passed to libvlc_video_format_cb

Rémi Denis-Courmont remi at remlab.net
Tue Mar 4 18:56:41 CET 2014


On Tue, 4 Mar 2014 16:22:29 +0100, Jérôme Forissier <jerome at taodyne.com>
wrote:
> I'm playing this 480x270 video with LibVLC:
> 
> $ avconv -i test.mp4 2>&1 | grep Video
>     Stream #0.0(und): Video: h264 (High), yuv420p, 480x270 [PAR 1:1 DAR
>     16:9], 229 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc
> 
> - With VLC 2.1.4, the video format callback receives *width == 480 and
> *height == 270
> - With a recent VLC from master (508d92f), I get *width == 480 and
*height
> == 290
> 
>  Why is height set to 290 rather than 270?

Because the decoder wants 290 lines worth of memory, of which only the 270
lines are visible.

-- 
Rémi Denis-Courmont
Sent from my collocated server



More information about the vlc-devel mailing list