diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-04-19 21:44:03 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-04-19 21:44:03 +0000 |
commit | 9dc41767029f6709d50f3765e49ba1cf1dd3748d (patch) | |
tree | dc8d01a8f2915559a013235b5dde57acc18c8864 /ffplay.c | |
parent | 5aef84623a5a16316a02ea58b0b59a289d67abd2 (diff) | |
download | ffmpeg-9dc41767029f6709d50f3765e49ba1cf1dd3748d.tar.gz |
Only insert null packets into the video que if there is a video stream.
Fixes memleak and should fix issue791.
Originally committed as revision 18629 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2074,11 +2074,13 @@ static int decode_thread(void *arg) continue; } if(url_feof(ic->pb) || eof) { + if(is->video_stream >= 0){ av_init_packet(pkt); pkt->data=NULL; pkt->size=0; pkt->stream_index= is->video_stream; packet_queue_put(&is->videoq, pkt); + } SDL_Delay(10); continue; } |