Replace remaining occurances of av_free_packet with av_packet_unref

This commit is contained in:
Hendrik Leppkes
2015-10-27 14:35:30 +01:00
parent 7f5af80ba4
commit c2f861ca42
59 changed files with 99 additions and 99 deletions

View File

@@ -2318,7 +2318,7 @@ static int http_prepare_data(HTTPContext *c)
c->packet_stream_index = pkt.stream_index;
ctx = c->rtp_ctx[c->packet_stream_index];
if(!ctx) {
av_free_packet(&pkt);
av_packet_unref(&pkt);
break;
}
codec = ctx->streams[0]->codec;
@@ -2370,11 +2370,11 @@ static int http_prepare_data(HTTPContext *c)
codec->frame_number++;
if (len == 0) {
av_free_packet(&pkt);
av_packet_unref(&pkt);
goto redo;
}
}
av_free_packet(&pkt);
av_packet_unref(&pkt);
}
}
break;
@@ -3548,7 +3548,7 @@ static void extract_mpeg4_header(AVFormatContext *infile)
}
mpeg4_count--;
}
av_free_packet(&pkt);
av_packet_unref(&pkt);
}
}