changeset 7276:6163e7de8604 libavcodec

Fix infinite loop at EOF.
author michael
date Mon, 14 Jul 2008 16:18:29 +0000
parents c5bcb9e4c5b2
children 2bd9df0236e8
files svq3.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/svq3.c	Mon Jul 14 14:41:01 2008 +0000
+++ b/svq3.c	Mon Jul 14 16:18:29 2008 +0000
@@ -835,6 +835,7 @@
   if (buf_size == 0) {
     if (s->next_picture_ptr && !s->low_delay) {
       *(AVFrame *) data = *(AVFrame *) &s->next_picture;
+      s->next_picture_ptr= NULL;
       *data_size = sizeof(AVFrame);
     }
     return 0;