diff options
author | Zane van Iperen <zane@zanevaniperen.com> | 2021-10-12 20:45:45 +1000 |
---|---|---|
committer | Zane van Iperen <zane@zanevaniperen.com> | 2021-10-15 23:39:47 +1000 |
commit | 20fa838da5a1cce23cb571781fc7fae4b18146ae (patch) | |
tree | d87ff997928200bf6baa42a297ba5beb7657a059 /libavformat/argo_asf.h | |
parent | 2c734a84964c6f6896194b0a3175124897468eac (diff) | |
download | ffmpeg-20fa838da5a1cce23cb571781fc7fae4b18146ae.tar.gz |
avformat/argo_asf: cleanup and NULL-terminate name field in header
Preparation for metadata changes in the following patches. Saves
having to create an extra buffer.
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
Diffstat (limited to 'libavformat/argo_asf.h')
-rw-r--r-- | libavformat/argo_asf.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/argo_asf.h b/libavformat/argo_asf.h index e65125fb79..1fab31a90b 100644 --- a/libavformat/argo_asf.h +++ b/libavformat/argo_asf.h @@ -33,6 +33,7 @@ #define ASF_CHUNK_HEADER_SIZE 20 #define ASF_SAMPLE_COUNT 32 #define ASF_MIN_BUFFER_SIZE FFMAX(ASF_FILE_HEADER_SIZE, ASF_CHUNK_HEADER_SIZE) +#define ASF_NAME_SIZE 8 typedef struct ArgoASFFileHeader { uint32_t magic; /*< Magic Number, {'A', 'S', 'F', '\0'} */ @@ -40,7 +41,7 @@ typedef struct ArgoASFFileHeader { uint16_t version_minor; /*< File Minor Version. */ uint32_t num_chunks; /*< No. chunks in the file. */ uint32_t chunk_offset; /*< Offset to the first chunk from the start of the file. */ - int8_t name[8]; /*< Name. */ + char name[ASF_NAME_SIZE + 1]; /*< Name, +1 for NULL-terminator. */ } ArgoASFFileHeader; typedef struct ArgoASFChunkHeader { |