mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-21 03:55:05 +00:00
Changed type of got _picture to boolean
This commit is contained in:
parent
25aff00935
commit
5696bdede8
1 changed files with 5 additions and 1 deletions
|
@ -15,6 +15,10 @@
|
|||
#include "util/buffer_util.h"
|
||||
#include "util/log.h"
|
||||
|
||||
typedef enum bool {
|
||||
false, true
|
||||
} bool;
|
||||
|
||||
// set the decoded frame as ready for rendering, and notify
|
||||
static void
|
||||
push_frame(struct decoder *decoder) {
|
||||
|
@ -79,7 +83,7 @@ decoder_push(struct decoder *decoder, const AVPacket *packet) {
|
|||
return false;
|
||||
}
|
||||
#else
|
||||
int got_picture;
|
||||
bool got_picture;
|
||||
int len = avcodec_decode_video2(decoder->codec_ctx,
|
||||
decoder->video_buffer->decoding_frame,
|
||||
&got_picture,
|
||||
|
|
Loading…
Add table
Reference in a new issue