diff options
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ffserver.c b/ffserver.c index 1d4c8dc5b9..526cbfcae3 100644 --- a/ffserver.c +++ b/ffserver.c @@ -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); } } |