Commit 13672c73 authored by luyikei's avatar luyikei

MLTInput: Workaround for returning wrong length and height

parent 96f5e67f
......@@ -285,13 +285,16 @@ MLTInput::aspectRatio() const
int
MLTInput::width() const
{
return producer()->get_int( "width" );
// FIXME: Sometimes I can't get width and height
auto v = producer()->get_int( "width" );
return v > 0 ? v : Backend::instance()->profile().width();
}
int
MLTInput::height() const
{
return producer()->get_int( "height" );
auto v = producer()->get_int( "height" );
return v > 0 ? v : Backend::instance()->profile().height();
}
bool
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment