hedgewars/avwrapper/avwrapper.c
changeset 11349 dc17a495ee7f
parent 11348 44248a9cdcac
child 11350 846aa36f7cdc
equal deleted inserted replaced
11348:44248a9cdcac 11349:dc17a495ee7f
   309 
   309 
   310     g_pVFrame = av_frame_alloc();
   310     g_pVFrame = av_frame_alloc();
   311     if (!g_pVFrame)
   311     if (!g_pVFrame)
   312         return FatalError("Could not allocate frame");
   312         return FatalError("Could not allocate frame");
   313 
   313 
       
   314     g_pVFrame->width = g_Width;
       
   315     g_pVFrame->height = g_Height;
       
   316     g_pVFrame->format = AV_PIX_FMT_YUV420P;
   314     g_pVFrame->linesize[0] = g_Width;
   317     g_pVFrame->linesize[0] = g_Width;
   315     g_pVFrame->linesize[1] = g_Width/2;
   318     g_pVFrame->linesize[1] = g_Width/2;
   316     g_pVFrame->linesize[2] = g_Width/2;
   319     g_pVFrame->linesize[2] = g_Width/2;
   317     g_pVFrame->linesize[3] = 0;
   320     g_pVFrame->linesize[3] = 0;
   318     return 0;
   321     return 0;