Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int gotkeyframe;
- static int get_video_frame(VideoState *is, AVFrame *frame)
- {
- int got_picture;
- if ((got_picture = decoder_decode_frame(&is->viddec, frame, NULL)) < 0)
- return -1;
- #if 0
- if (frame->key_frame)
- gotkeyframe=1;
- if (gotkeyframe==0) {
- is->frame_drops_early++;
- av_frame_unref(frame);
- got_picture = 0;
- }
- if (got_picture && gotkeyframe) {
- #else
- if (got_picture) {
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement