diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-03-08 15:21:12 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-03-08 15:21:12 +0000 |
commit | 93ffd2ad797276602041d32703a691d358297bae (patch) | |
tree | 2e252a7e76812b525e561fe3e129c0ad7c2cbf60 /libmpdemux | |
parent | dddd5404a543f5e7ebadc8111c4ed0e54dcbb627 (diff) |
Missing free_demux_packet after read error
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17780 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_mpg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpdemux/demux_mpg.c b/libmpdemux/demux_mpg.c index 72d60669cc..041ee276c0 100644 --- a/libmpdemux/demux_mpg.c +++ b/libmpdemux/demux_mpg.c @@ -559,7 +559,10 @@ static int demux_mpg_gxf_fill_buffer(demuxer_t *demux, demux_stream_t *ds) { pack = new_demux_packet(STREAM_BUFFER_SIZE); len = stream_read(demux->stream, pack->buffer, STREAM_BUFFER_SIZE); if (len <= 0) + { + free_demux_packet(pack); return 0; + } { register uint32_t state = (uint32_t)demux->priv; register int pos = -len; |