Advertisement
Guest User

Untitled

a guest
Jul 7th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. static int gotkeyframe;
  2. static int get_video_frame(VideoState *is, AVFrame *frame)
  3. {
  4. int got_picture;
  5.  
  6. if ((got_picture = decoder_decode_frame(&is->viddec, frame, NULL)) < 0)
  7. return -1;
  8. #if 0
  9. if (frame->key_frame)
  10. gotkeyframe=1;
  11. if (gotkeyframe==0) {
  12. is->frame_drops_early++;
  13. av_frame_unref(frame);
  14. got_picture = 0;
  15. }
  16. if (got_picture && gotkeyframe) {
  17. #else
  18.  
  19. if (got_picture) {
  20. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement