projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aef846
)
Only insert null packets into the video que if there is a video stream.
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 19 Apr 2009 21:44:03 +0000
(21:44 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 19 Apr 2009 21:44:03 +0000
(21:44 +0000)
Fixes memleak and should fix issue791.
Originally committed as revision 18629 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffplay.c
patch
|
blob
|
history
diff --git
a/ffplay.c
b/ffplay.c
index
3e52af7
..
e9f9f64
100644
(file)
--- a/
ffplay.c
+++ b/
ffplay.c
@@
-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;
}