OSDN Git Service

Return if unpacking motion vectors for a keyframe
authorDavid Conrad <lessen42@gmail.com>
Wed, 1 Oct 2008 14:48:00 +0000 (14:48 +0000)
committerDavid Conrad <lessen42@gmail.com>
Wed, 1 Oct 2008 14:48:00 +0000 (14:48 +0000)
Originally committed as revision 15502 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/vp3.c

index 625d832..712d7bb 100644 (file)
@@ -812,6 +812,7 @@ static int unpack_vectors(Vp3DecodeContext *s, GetBitContext *gb)
     int current_fragment;
 
     if (s->keyframe) {
+        return 0;
     } else {
         memset(motion_x, 0, 6 * sizeof(int));
         memset(motion_y, 0, 6 * sizeof(int));