git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65988b9
)
doc/examples/demuxing: reset got_frame.
author
Clément Bœsch
<clement@stupeflix.com>
Wed, 30 Oct 2013 13:37:33 +0000
(14:37 +0100)
committer
Clément Bœsch
<clement@stupeflix.com>
Wed, 30 Oct 2013 13:37:58 +0000
(14:37 +0100)
Fix infinite loop at flushing.
doc/examples/demuxing.c
patch
|
blob
|
history
diff --git
a/doc/examples/demuxing.c
b/doc/examples/demuxing.c
index
e459cf0
..
7ae3654
100644
(file)
--- a/
doc/examples/demuxing.c
+++ b/
doc/examples/demuxing.c
@@
-58,6
+58,8
@@
static int decode_packet(int *got_frame, int cached)
int ret = 0;
int decoded = pkt.size;
+ *got_frame = 0;
+
if (pkt.stream_index == video_stream_idx) {
/* decode video frame */
ret = avcodec_decode_video2(video_dec_ctx, frame, got_frame, &pkt);