libavfilter/src_movie: fix which packet is reset
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 26 Jun 2013 11:06:11 +0000 (13:06 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 26 Jun 2013 11:06:11 +0000 (13:06 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/src_movie.c

index a784f43..1c4fd5a 100644 (file)
@@ -515,8 +515,8 @@ static int movie_push_frame(AVFilterContext *ctx, unsigned out_id)
         av_log(ctx, AV_LOG_WARNING, "Decode error: %s\n", av_err2str(ret));
         av_frame_free(&movie->frame);
         av_free_packet(&movie->pkt0);
-        movie->pkt0.size = 0;
-        movie->pkt0.data = NULL;
+        movie->pkt.size = 0;
+        movie->pkt.data = NULL;
         return 0;
     }
     if (!ret)