diff svq3.c @ 7276:6163e7de8604 libavcodec

Fix infinite loop at EOF.
author michael
date Mon, 14 Jul 2008 16:18:29 +0000
parents e943e1409077
children 697213189d07
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;