changeset 7386:00b1f0ecb386 libavcodec

Assert that long_ref has been cleared for released pics.
author michael
date Fri, 25 Jul 2008 11:54:03 +0000
parents 617eababb511
children dee39446a364
files h264.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Fri Jul 25 11:52:40 2008 +0000
+++ b/h264.c	Fri Jul 25 11:54:03 2008 +0000
@@ -2268,6 +2268,7 @@
 
     s->current_picture_ptr->field_poc[0]=
     s->current_picture_ptr->field_poc[1]= INT_MAX;
+    assert(s->current_picture_ptr->long_ref==0);
 
     return 0;
 }