summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorSasi Inguva <isasi-at-google.com@ffmpeg.org>2016-10-23 22:37:50 -0700
committerRostislav Pehlivanov <atomnuker@gmail.com>2016-10-31 13:43:43 +0000
commit5e965582d5129ec1c5cbe67125fff8c96c6ba3c6 (patch)
treef9fc29f1a71e0e7b743f8b50a148c765048db4c2 /libavformat
parent894e7ef9b4256e92fd0ec9ec2518389502b8be91 (diff)
lavf/mov.c: Use the correct timescale when seeking for audio.
Signed-off-by: Sasi Inguva <isasi@google.com> Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 357d800732..414007e7aa 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -3028,7 +3028,7 @@ static void mov_fix_index(MOVContext *mov, AVStream *st)
// Audio decoders like AAC need need a decoder delay samples previous to the current sample,
// to correctly decode this frame. Hence for audio we seek to a frame 1 sec. before the
// edit_list_media_time to cover the decoder delay.
- search_timestamp = FFMAX(search_timestamp - mov->time_scale, e_old[0].timestamp);
+ search_timestamp = FFMAX(search_timestamp - msc->time_scale, e_old[0].timestamp);
}
index = find_prev_closest_keyframe_index(st, e_old, nb_old, search_timestamp, 0);