Changed type of got _picture to boolean

This commit is contained in:
Roy Matero 2020-10-12 13:45:03 +03:00
commit 5696bdede8

View file

@ -15,6 +15,10 @@
#include "util/buffer_util.h" #include "util/buffer_util.h"
#include "util/log.h" #include "util/log.h"
typedef enum bool {
false, true
} bool;
// set the decoded frame as ready for rendering, and notify // set the decoded frame as ready for rendering, and notify
static void static void
push_frame(struct decoder *decoder) { push_frame(struct decoder *decoder) {
@ -79,7 +83,7 @@ decoder_push(struct decoder *decoder, const AVPacket *packet) {
return false; return false;
} }
#else #else
int got_picture; bool got_picture;
int len = avcodec_decode_video2(decoder->codec_ctx, int len = avcodec_decode_video2(decoder->codec_ctx,
decoder->video_buffer->decoding_frame, decoder->video_buffer->decoding_frame,
&got_picture, &got_picture,