]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/xl.c
Use MAP_FAILED to check for mmap failure instead of manually
[ffmpeg] / libavcodec / xl.c
index 7fbe626d588e4583fc71c9ca81fee880fe2964d4..5f19cae3bbf6e240b7690adb43e4afa95cf93a57 100644 (file)
@@ -60,7 +60,7 @@ static int decode_frame(AVCodecContext *avctx,
         av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
         return -1;
     }
-    p->pict_type= FF_I_TYPE;
+    p->pict_type= AV_PICTURE_TYPE_I;
     p->key_frame= 1;
 
     Y = a->pic.data[0];