Fix a segfault : check the return value of x264_encoder_open().
authorAdrien Maglo <magsoft@videolan.org>
Thu, 28 May 2009 18:05:23 +0000 (20:05 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 29 May 2009 22:32:43 +0000 (00:32 +0200)
commit7cf05804b833ed11b60779663d7293adceb4107d
tree8b7f5687567a4a69b2d14945f384f74f065f57cc
parent1d7a69b16a439a578afcf0dba40e26a8477b7af0
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 77dea4efed8f1ce11edf551ac33b53ead9fb16a8)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/x264.c