diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-10-27 14:35:30 +0100 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-10-27 14:35:30 +0100 |
commit | c2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4 (patch) | |
tree | fd5a76e51fa3eb2b90deafbb6c0c48a127be42a9 /ffserver.c | |
parent | 7f5af80ba42bbd82da53dfd95236e9d47159a96a (diff) | |
download | ffmpeg-c2f861ca42fa1a2fb6f7e85abb7bd44f39c6f2c4.tar.gz |
Replace remaining occurances of av_free_packet with av_packet_unref
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); } } |