]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vsrc_movie.c
avpacket: Replace av_free_packet with av_packet_unref
[ffmpeg] / libavfilter / vsrc_movie.c
index a99be3975880734bd4cdde96aea369ba15a081be..850788c12be42ad0f2b6bcf58490a4cb352e1c88 100644 (file)
@@ -230,13 +230,13 @@ static int movie_get_frame(AVFilterLink *outlink)
                         movie->frame->sample_aspect_ratio.num,
                         movie->frame->sample_aspect_ratio.den);
                 // We got it. Free the packet since we are returning
-                av_free_packet(&pkt);
+                av_packet_unref(&pkt);
 
                 return 0;
             }
         }
         // Free the packet that was allocated by av_read_frame
-        av_free_packet(&pkt);
+        av_packet_unref(&pkt);
     }
 
     // On multi-frame source we should stop the mixing process when