]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/psxstr.c
Merge commit 'b8deb7c34f755d5e3eee0b5930c3a6ad2dda96bc'
[ffmpeg] / libavformat / psxstr.c
index 3aa08eb93f7c7d50a76157783adeaa3fdd838654..b57981af400f9a4f49212fbe764066f0d0ddaa74 100644 (file)
@@ -218,7 +218,7 @@ static int str_read_packet(AVFormatContext *s,
                 if(pkt->size != sector_count*VIDEO_DATA_CHUNK_SIZE){
                     if(pkt->data)
                         av_log(s, AV_LOG_ERROR, "missmatching sector_count\n");
-                    av_free_packet(pkt);
+                    av_packet_unref(pkt);
                     if (av_new_packet(pkt, sector_count*VIDEO_DATA_CHUNK_SIZE))
                         return AVERROR(EIO);
                     memset(pkt->data, 0, sector_count*VIDEO_DATA_CHUNK_SIZE);
@@ -298,7 +298,7 @@ static int str_read_close(AVFormatContext *s)
     int i;
     for(i=0; i<32; i++){
         if(str->channels[i].tmp_pkt.data)
-            av_free_packet(&str->channels[i].tmp_pkt);
+            av_packet_unref(&str->channels[i].tmp_pkt);
     }
 
     return 0;