Fix compile error on Linux platform and use c++ style header file(<cstddef> instead of <stddef.h>)

This commit is contained in:
dijunkun
2024-05-23 14:41:51 +08:00
parent 5decc4b007
commit 3fc8f9f616
21 changed files with 40 additions and 37 deletions

View File

@@ -1,8 +1,7 @@
#include "audio_encoder.h"
#include <stdlib.h>
#include <chrono>
#include <cstdlib>
#include <cstring>
#include "log.h"

View File

@@ -7,6 +7,9 @@
#ifndef _VIDEO_DECODER_H_
#define _VIDEO_DECODER_H_
#include <cstddef>
#include <cstdint>
#include <cstdio>
#include <functional>
#include "video_frame.h"

View File

@@ -1,6 +1,9 @@
#ifndef _VIDEO_ENCODER_H_
#define _VIDEO_ENCODER_H_
#include <cstddef>
#include <cstdint>
#include <cstdio>
#include <functional>
class VideoEncoder {