You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avformat/oggparseogm: Check ff_alloc_extradata() for failure
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
		| @@ -110,7 +110,8 @@ ogm_header(AVFormatContext *s, int idx) | ||||
|                 size -= 52; | ||||
|                 if (bytestream2_get_bytes_left(&p) < size) | ||||
|                     return AVERROR_INVALIDDATA; | ||||
|                 ff_alloc_extradata(st->codecpar, size); | ||||
|                 if (ff_alloc_extradata(st->codecpar, size) < 0) | ||||
|                     return AVERROR(ENOMEM); | ||||
|                 bytestream2_get_buffer(&p, st->codecpar->extradata, st->codecpar->extradata_size); | ||||
|             } | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user