This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
doc/examples/demuxing: reset got_frame.
Fix infinite loop at flushing.
tags/n2.2-rc1
Clément Bœsch
11 years ago
parent
65988b9916
commit
0c6bb53bb2
1 changed files
with
2 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
doc/examples/demuxing.c
+ 2
- 0
doc/examples/demuxing.c
View File
@@ -58,6 +58,8 @@ static int decode_packet(int *got_frame, int cached)
int ret = 0;
int ret = 0;
int decoded = pkt.size;
int decoded = pkt.size;
*got_frame = 0;
if (pkt.stream_index == video_stream_idx) {
if (pkt.stream_index == video_stream_idx) {
/* decode video frame */
/* decode video frame */
ret = avcodec_decode_video2(video_dec_ctx, frame, got_frame, &pkt);
ret = avcodec_decode_video2(video_dec_ctx, frame, got_frame, &pkt);
Write
Preview
Loading…
Cancel
Save