mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
lavfi/aspect: set default value to 0:1, as stated in the docs
Fix regression introduced in commit 70ffda3217c58bbbfb8a7e7c58824b8ca6c56128.
This commit is contained in:
parent
80715c3b23
commit
4538d66010
@ -35,6 +35,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
|
|||||||
{
|
{
|
||||||
AspectContext *aspect = ctx->priv;
|
AspectContext *aspect = ctx->priv;
|
||||||
int ret;
|
int ret;
|
||||||
|
aspect->ratio = (AVRational) {0, 1};
|
||||||
|
|
||||||
if (args) {
|
if (args) {
|
||||||
if ((ret = av_parse_ratio(&aspect->ratio, args, 100, 0, ctx)) < 0 ||
|
if ((ret = av_parse_ratio(&aspect->ratio, args, 100, 0, ctx)) < 0 ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user