Commit 818f3dc9 authored by Michael Niedermayer's avatar Michael Niedermayer

audio_frame_que: remove broken code that is specific to old audio_que

This should fix compilation with -DDEBUG
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ad7fae4e
...@@ -40,22 +40,6 @@ void ff_af_queue_close(AudioFrameQueue *afq) ...@@ -40,22 +40,6 @@ void ff_af_queue_close(AudioFrameQueue *afq)
memset(afq, 0, sizeof(*afq)); memset(afq, 0, sizeof(*afq));
} }
#ifdef DEBUG
static void af_queue_log_state(AudioFrameQueue *afq)
{
AudioFrame *f;
av_dlog(afq->avctx, "remaining delay = %d\n", afq->remaining_delay);
av_dlog(afq->avctx, "remaining samples = %d\n", afq->remaining_samples);
av_dlog(afq->avctx, "frames:\n");
f = afq->frame_queue;
while (f) {
av_dlog(afq->avctx, " [ pts=%9"PRId64" duration=%d ]\n",
f->pts, f->duration);
f = f->next;
}
}
#endif /* DEBUG */
int ff_af_queue_add(AudioFrameQueue *afq, const AVFrame *f) int ff_af_queue_add(AudioFrameQueue *afq, const AVFrame *f)
{ {
AudioFrame *new = av_fast_realloc(afq->frames, &afq->frame_alloc, sizeof(*afq->frames)*(afq->frame_count+1)); AudioFrame *new = av_fast_realloc(afq->frames, &afq->frame_alloc, sizeof(*afq->frames)*(afq->frame_count+1));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment