diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-10 00:47:43 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-10 00:56:38 +0200 |
commit | 6e94e77632df457da03b5c27fff8a1b976f6994d (patch) | |
tree | 5878bf1394e5839e7745cc42fb6608535f9cc2ba | |
parent | f5bb7b99927d3b19a329b4f3a8990ae6f58693d7 (diff) | |
download | ffmpeg-n2.7.tar.gz |
avdevice/lavfi: do not rescale AV_NOPTS_VALUE in lavfi_read_packet()n2.7
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 913685f55208efd78bfc34d82b261bd449e69774)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavdevice/lavfi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c index 64db376899..126e5f62ce 100644 --- a/libavdevice/lavfi.c +++ b/libavdevice/lavfi.c @@ -411,7 +411,7 @@ static int lavfi_read_packet(AVFormatContext *avctx, AVPacket *pkt) continue; } else if (ret < 0) return ret; - d = av_rescale_q(frame->pts, tb, AV_TIME_BASE_Q); + d = av_rescale_q_rnd(frame->pts, tb, AV_TIME_BASE_Q, AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX); av_dlog(avctx, "sink_idx:%d time:%f\n", i, d); av_frame_unref(frame); |