diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2020-06-03 21:00:01 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-06-06 00:25:00 +0200 |
commit | 71a822fa3514b82cde6701252bde0477aad21689 (patch) | |
tree | 5dc4508cd9b9acfbd212e472381d9115593a2daf /libavformat/rawdec.c | |
parent | a1a85579e304d5aa6e41324e41603e2d20b93df3 (diff) | |
download | ffmpeg-71a822fa3514b82cde6701252bde0477aad21689.tar.gz |
avformat/rawdec: fix identifier names
Fixes: out of array access
Fixes: 22686/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5121369624018944
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/rawdec.c')
-rw-r--r-- | libavformat/rawdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c index fee016cc7f..10c37c5cb9 100644 --- a/libavformat/rawdec.c +++ b/libavformat/rawdec.c @@ -123,6 +123,8 @@ const AVOption ff_rawvideo_options[] = { { "raw_packet_size", "", OFFSET(raw_packet_size), AV_OPT_TYPE_INT, {.i64 = RAW_PACKET_SIZE }, 1, INT_MAX, DEC}, { NULL }, }; +#undef OFFSET +#define OFFSET(x) offsetof(FFRawDemuxerContext, x) const AVOption ff_raw_options[] = { { "raw_packet_size", "", OFFSET(raw_packet_size), AV_OPT_TYPE_INT, {.i64 = RAW_PACKET_SIZE }, 1, INT_MAX, DEC}, { NULL }, |