libde265 icon indicating copy to clipboard operation
libde265 copied to clipboard

dec265: Resize window if image resolution changes mid-stream.

Open fancycode opened this issue 1 year ago • 0 comments

Fixes the first example from #460

@farindk the stream changes image information as follows:

Image: 352x288 bpp_y=8 bpp_c=8
Image: 512x256 bpp_y=8 bpp_c=8
Image: 512x256 bpp_y=14 bpp_c=8
Image: 512x256 bpp_y=14 bpp_c=8

I fixed the crash by resizing the SDL window if the image size in the stream changes.

The second example still crashes on the fist image in the stream, I haven't figured out why yet. Looks like the memory returned from SDL_LockTexture is too small for display444as420 later even through the width/height seem to match from what was created.

fancycode avatar Jul 08 '24 08:07 fancycode