aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2013-07-21 11:55:49 +0200
committerMarton Balint <cus@passwd.hu>2013-07-21 12:00:22 +0200
commitb198e33ad8b3e2f11d525cd6bcd211d6298ba81c (patch)
tree32bde2290cc233db42378b45a506136eff1f6d03 /ffplay.c
parentc25d1ba55636504c2b6a9c6987cf4c80fdc7091c (diff)
downloadffmpeg-b198e33ad8b3e2f11d525cd6bcd211d6298ba81c.tar.gz
ffplay: fix build with disabled avfilter
Got broken in b383498e. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index 9b5dce0add..ca95c2c7bc 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2175,7 +2175,11 @@ static int audio_decode_frame(VideoState *is)
else if (is->frame->pkt_pts != AV_NOPTS_VALUE)
is->frame->pts = av_rescale_q(is->frame->pkt_pts, is->audio_st->time_base, tb);
else if (is->audio_frame_next_pts != AV_NOPTS_VALUE)
+#if CONFIG_AVFILTER
is->frame->pts = av_rescale_q(is->audio_frame_next_pts, (AVRational){1, is->audio_filter_src.freq}, tb);
+#else
+ is->frame->pts = av_rescale_q(is->audio_frame_next_pts, (AVRational){1, is->audio_src.freq}, tb);
+#endif
if (is->frame->pts != AV_NOPTS_VALUE)
is->audio_frame_next_pts = is->frame->pts + is->frame->nb_samples;