[FFmpeg-cvslog] r18629 - trunk/ffplay.c
michael
subversion
Sun Apr 19 23:44:03 CEST 2009
Author: michael
Date: Sun Apr 19 23:44:03 2009
New Revision: 18629
Log:
Only insert null packets into the video que if there is a video stream.
Fixes memleak and should fix issue791.
Modified:
trunk/ffplay.c
Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c Sun Apr 19 23:24:36 2009 (r18628)
+++ trunk/ffplay.c Sun Apr 19 23:44:03 2009 (r18629)
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list