fix memleak in packet corrupt dropping code

This commit is contained in:
Chris Kennedy 2011-10-18 12:00:48 +02:00 committed by Michael Niedermayer
parent c4e02d3432
commit c108a4aa1e
1 changed files with 1 additions and 0 deletions

View File

@ -756,6 +756,7 @@ int av_read_packet(AVFormatContext *s, AVPacket *pkt)
av_log(s, AV_LOG_WARNING,
"Dropped corrupted packet (stream = %d)\n",
pkt->stream_index);
av_free_packet(pkt);
continue;
}