-
- Downloads
"README.md" did not exist on "100a74222b8f26a63f03ddb74f3ae31dcfb62b37"
mpegvideo: allocate scratch buffers after linesize is known
Since we can't know which stride a custom get_buffer() implementation is going to use we have to allocate this scratch buffers after the linesize is known. It was pretty safe for 8 bit per pixel pixel formats since we always allocated memory for up to 16 bits per pixel. It broke hoever with cmdutis.c's alloc_buffer() and high pixel bit depth since it allocated larger edges than mpegvideo expected. Fixes fuzzed sample nasa-8s2.ts_s244342.
Showing
- libavcodec/h264.c 14 additions, 3 deletionslibavcodec/h264.c
- libavcodec/mpeg12.c 4 additions, 1 deletionlibavcodec/mpeg12.c
- libavcodec/mpegvideo.c 61 additions, 15 deletionslibavcodec/mpegvideo.c
- libavcodec/mpegvideo.h 2 additions, 1 deletionlibavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c 4 additions, 2 deletionslibavcodec/mpegvideo_enc.c
Loading
Please register or sign in to comment