]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/v210enc.c
Use MAP_FAILED to check for mmap failure instead of manually
[ffmpeg] / libavcodec / v210enc.c
index 39f672d22bf4b920958347f5fc314d97329df7f9..69499d844bf5e8b65e5c76da41475d6442e4ac9f 100644 (file)
@@ -43,7 +43,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
     avctx->coded_frame = avcodec_alloc_frame();
 
     avctx->coded_frame->key_frame = 1;
-    avctx->coded_frame->pict_type = FF_I_TYPE;
+    avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
 
     return 0;
 }