History

afq: sanity assert on remaining_samples

Michael Niedermayer committed 14 years ago

Commit 047dcfa1 parent b27e2b61 file · +1 −0Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/audio_frame_queue.c+1−0
@@ -102,6 +102,7 @@ void ff_af_queue_remove(AudioFrameQueue *afq, int nb_samples, int64_t *pts, · 101 unmodified lines
102102
103103 if(nb_samples){
104104 av_assert0(!afq->frame_count);
105+ av_assert0(afq->remaining_samples == afq->remaining_delay);
105106 if(afq->frames && afq->frames[0].pts != AV_NOPTS_VALUE)
106107 afq->frames[0].pts += nb_samples;
107108 av_log(afq->avctx, AV_LOG_DEBUG, "Trying to remove %d more samples than are in the que\n", nb_samples);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t