Browse Source

Fixed a bug in the ffmpeg movie decoder.

Josh Yelon 17 years ago
parent
commit
1d16b20393
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/movies/ffmpegVideoCursor.cxx

+ 1 - 1
panda/src/movies/ffmpegVideoCursor.cxx

@@ -282,7 +282,7 @@ fetch_time(double time) {
     // Time is in the present: already have the frame.
   } else if (time < _next_start + _min_fseek) {
     // Time is in the near future.
-    while (_packet_time <= time) {
+    while ((_packet_time <= time) && (_packet->data)) {
       fetch_frame();
     }
   } else {