]> 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 f7d025eca44acd6c73d174e79e420c71bd3bdcb2..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];
@@ -138,7 +138,7 @@ static av_cold int decode_end(AVCodecContext *avctx){
     return 0;
 }
 
-AVCodec xl_decoder = {
+AVCodec ff_xl_decoder = {
     "xl",
     AVMEDIA_TYPE_VIDEO,
     CODEC_ID_VIXL,