Commit ab20f6b2 authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/ffmpeg/encoder.c: hmm better be safe than sorry.

parent a7e63895
...@@ -352,7 +352,7 @@ int E_(OpenEncoder)( vlc_object_t *p_this ) ...@@ -352,7 +352,7 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
av_reduce( &p_context->sample_aspect_ratio.num, av_reduce( &p_context->sample_aspect_ratio.num,
&p_context->sample_aspect_ratio.den, &p_context->sample_aspect_ratio.den,
i_aspect_num * (int64_t)p_context->height, i_aspect_num * (int64_t)p_context->height,
i_aspect_den * p_context->width, 1 << 30 ); i_aspect_den * (int64_t)p_context->width, 1 << 30 );
#else #else
p_context->aspect_ratio = ((float)p_enc->fmt_in.video.i_aspect) / p_context->aspect_ratio = ((float)p_enc->fmt_in.video.i_aspect) /
VOUT_ASPECT_FACTOR; VOUT_ASPECT_FACTOR;
......
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