[FFmpeg-cvslog] afq: sanity assert on remaining_samples

Michael Niedermayer git at videolan.org
Thu Oct 4 03:09:46 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct  4 02:43:01 2012 +0200| [047dcfabc7e8932490836be94ef3b2ecc8289ab0] | committer: Michael Niedermayer

afq: sanity assert on remaining_samples

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/audio_frame_queue.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/audio_frame_queue.c b/libavcodec/audio_frame_queue.c
index a5c22ce..7db0091 100644
--- a/libavcodec/audio_frame_queue.c
+++ b/libavcodec/audio_frame_queue.c
@@ -102,6 +102,7 @@ void ff_af_queue_remove(AudioFrameQueue *afq, int nb_samples, int64_t *pts,
 
     if(nb_samples){
         av_assert0(!afq->frame_count);
+        av_assert0(afq->remaining_samples == afq->remaining_delay);
         if(afq->frames && afq->frames[0].pts != AV_NOPTS_VALUE)
             afq->frames[0].pts += nb_samples;
         av_log(afq->avctx, AV_LOG_DEBUG, "Trying to remove %d more samples than are in the que\n", nb_samples);



More information about the ffmpeg-cvslog mailing list