Fix a segfault : check the return value of x264_encoder_open().
According to x264 code, if it fails, it return NULL. And with a first NULL parameter x264_encoder_headers() segfaults. Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org> (cherry picked from commit 77dea4ef) Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Showing
Please register or sign in to comment