[x264-devel] [Git][videolan/x264][master] ffms: Fix crash if stream properties changes

Anton Mitrofanov (@BugMaster) gitlab at videolan.org
Thu Oct 6 07:24:54 UTC 2022



Anton Mitrofanov pushed to branch master at VideoLAN / x264


Commits:
b093bbe7 by Anton Mitrofanov at 2022-10-06T00:12:42+03:00
ffms: Fix crash if stream properties changes

- - - - -


1 changed file:

- input/ffms.c


Changes:

=====================================
input/ffms.c
=====================================
@@ -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 )
     {



View it on GitLab: https://code.videolan.org/videolan/x264/-/commit/b093bbe7d9bc642c8f24067cbdcc73bb43562eab

-- 
View it on GitLab: https://code.videolan.org/videolan/x264/-/commit/b093bbe7d9bc642c8f24067cbdcc73bb43562eab
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the x264-devel mailing list