Browse code

ffplay: fix build with disabled avfilter

Got broken in b383498e.

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

Marton Balint authored on 2013/07/21 18:55:49
Showing 1 changed files
... ...
@@ -2175,7 +2175,11 @@ static int audio_decode_frame(VideoState *is)
2175 2175
                 else if (is->frame->pkt_pts != AV_NOPTS_VALUE)
2176 2176
                     is->frame->pts = av_rescale_q(is->frame->pkt_pts, is->audio_st->time_base, tb);
2177 2177
                 else if (is->audio_frame_next_pts != AV_NOPTS_VALUE)
2178
+#if CONFIG_AVFILTER
2178 2179
                     is->frame->pts = av_rescale_q(is->audio_frame_next_pts, (AVRational){1, is->audio_filter_src.freq}, tb);
2180
+#else
2181
+                    is->frame->pts = av_rescale_q(is->audio_frame_next_pts, (AVRational){1, is->audio_src.freq}, tb);
2182
+#endif
2179 2183
 
2180 2184
                 if (is->frame->pts != AV_NOPTS_VALUE)
2181 2185
                     is->audio_frame_next_pts = is->frame->pts + is->frame->nb_samples;