mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-01 21:12:53 +08:00
avcodec/mediacodec: convert to stdatomic
Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#define AVCODEC_MEDIACODECDEC_COMMON_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdatomic.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "libavutil/frame.h"
|
||||
@@ -34,7 +35,7 @@
|
||||
|
||||
typedef struct MediaCodecDecContext {
|
||||
|
||||
volatile int refcount;
|
||||
atomic_int refcount;
|
||||
|
||||
char *codec_name;
|
||||
|
||||
@@ -88,7 +89,7 @@ typedef struct MediaCodecBuffer {
|
||||
MediaCodecDecContext *ctx;
|
||||
ssize_t index;
|
||||
int64_t pts;
|
||||
volatile int released;
|
||||
atomic_int released;
|
||||
|
||||
} MediaCodecBuffer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user