[FFmpeg-cvslog] ffplay: fix build with disabled avfilter

Marton Balint git at videolan.org
Sun Jul 21 18:11:10 CEST 2013


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sun Jul 21 11:55:49 2013 +0200| [b198e33ad8b3e2f11d525cd6bcd211d6298ba81c] | committer: Marton Balint

ffplay: fix build with disabled avfilter

Got broken in b383498e.

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b198e33ad8b3e2f11d525cd6bcd211d6298ba81c
---

 ffplay.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ffplay.c b/ffplay.c
index 9b5dce0..ca95c2c 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;



More information about the ffmpeg-cvslog mailing list