Replace remaining occurances of av_free_packet with av_packet_unref
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user