]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ivi_common.c
build: Try to find fate_config.sh.template in source path
[ffmpeg] / libavcodec / ivi_common.c
index 7f14a89f3376e9c88033de77cbb01341553de41d..d1ee2e00c9993ba645956c635e54985feb90cc32 100644 (file)
@@ -26,7 +26,7 @@
  * Indeo5 decoders.
  */
 
-#define ALT_BITSTREAM_READER_LE
+#define BITSTREAM_READER_LE
 #include "avcodec.h"
 #include "get_bits.h"
 #include "ivi_common.h"
@@ -611,6 +611,9 @@ void ff_ivi_output_plane(IVIPlaneDesc *plane, uint8_t *dst, int dst_pitch)
     const int16_t   *src  = plane->bands[0].buf;
     uint32_t        pitch = plane->bands[0].pitch;
 
+    if(!src)
+        return;
+
     for (y = 0; y < plane->height; y++) {
         for (x = 0; x < plane->width; x++)
             dst[x] = av_clip_uint8(src[x] + 128);