Message ID | 20171115074427.25409-1-lq@chinaffmpeg.org |
---|---|
State | New |
Headers | show |
diff --git a/libavformat/mux.c b/libavformat/mux.c index b1244c67f3..ec18c6d7b0 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -316,7 +316,7 @@ FF_ENABLE_DEPRECATION_WARNINGS goto fail; } if (av_cmp_q(st->sample_aspect_ratio, par->sample_aspect_ratio) - && fabs(av_q2d(st->sample_aspect_ratio) - av_q2d(par->sample_aspect_ratio)) > 0.004*av_q2d(st->sample_aspect_ratio) + && FFABS(av_q2d(st->sample_aspect_ratio) - av_q2d(par->sample_aspect_ratio)) > 0.004*av_q2d(st->sample_aspect_ratio) ) { if (st->sample_aspect_ratio.num != 0 && st->sample_aspect_ratio.den != 0 &&
Signed-off-by: Steven Liu <lq@chinaffmpeg.org> --- libavformat/mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)