[vlc-devel] How to obtain video dimensions in a video filter.

Peter Tap ptrtap at yahoo.com
Fri Mar 30 19:38:56 CEST 2012


Folks,

In my video filter module, I am obtaining the width and height of the video being played as shown here:


static subpicture_t *Filter( filter_t *p_filter, mtime_t date )
{

    int ht = p_filter->fmt_out.video.i_height;
    int wd = p_filter->fmt_out.video.i_width;
    ,..
}

However, the values that are returned are always 0.

Can someone please tell me what is the right way to obtain the media dimensions?

Thank you in advance for your help.

Regards,
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120330/8419b152/attachment.html>


More information about the vlc-devel mailing list