lavf/utils: fix ff_interleave_compare_dts corner case.
authorVitor Sessak <vitor1001@gmail.com>
Sat, 7 May 2011 20:48:29 +0000 (22:48 +0200)
committerRonald S. Bultje <rsbultje@gmail.com>
Tue, 10 May 2011 11:53:19 +0000 (07:53 -0400)
commitecc297308ff3cb8b20359df44108ac299b22bdf1
treeaaeb1adc69c026a6e8c12314727ce8f69f268b48
parent23d10ce0150b4fed54131fce4c1a6e47378a88dd
lavf/utils: fix ff_interleave_compare_dts corner case.

This should fix behavior introduced by commit
96573c0d7605672d69b42ae1dcf18764ce47c71a. Av_rescale_rnd() is not
lossless so if two timestamps are equal after being rescaled they are
not always actually identical. This patch use av_compare_ts() to get
always a correct result.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavformat/utils.c
tests/ref/lavf/avi
tests/ref/lavf/nut
tests/ref/seek/lavf_avi
tests/ref/seek/lavf_nut