Skip to content
Snippets Groups Projects
Commit b093bbe7 authored by Anton Mitrofanov's avatar Anton Mitrofanov
Browse files

ffms: Fix crash if stream properties changes

parent ed0f7a63
Branches master
No related tags found
No related merge requests found
......@@ -190,6 +190,10 @@ static int read_frame( cli_pic_t *pic, hnd_t handle, int i_frame )
memcpy( pic->img.stride, frame->Linesize, sizeof(pic->img.stride) );
memcpy( pic->img.plane, frame->Data, sizeof(pic->img.plane) );
int is_fullrange = 0;
pic->img.width = frame->EncodedWidth;
pic->img.height = frame->EncodedHeight;
pic->img.csp = handle_jpeg( frame->EncodedPixelFormat, &is_fullrange ) | X264_CSP_OTHER;
if( h->vfr_input )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment