mirror of
https://github.com/anthwlock/untrunc.git
synced 2026-10-04 15:56:50 +02:00
26 lines
403 B
C++
26 lines
403 B
C++
#ifndef NAL_H
|
|
#define NAL_H
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
|
|
#include "common.h"
|
|
|
|
class NalInfo {
|
|
public:
|
|
NalInfo() = default;
|
|
NalInfo(const uchar* start, int max_size);
|
|
|
|
uint length_ = 0;
|
|
int ref_idc_ = 0;
|
|
int nal_type_ = 0;
|
|
|
|
bool is_ok; // did parsing work
|
|
bool is_forbidden_set_;
|
|
std::vector<uchar> payload_;
|
|
bool parseNal(const uchar* start, uint32_t max_size);
|
|
};
|
|
|
|
|
|
#endif // NAL_H
|