hedgewars/avwrapper/avwrapper.c
branch0.9.22
changeset 11595 9a17a39eccdc
parent 11594 91d31e15f8f2
child 11596 ba7e67586fcd
equal deleted inserted replaced
11594:91d31e15f8f2 11595:9a17a39eccdc
   315 
   315 
   316     g_pVFrame = av_frame_alloc();
   316     g_pVFrame = av_frame_alloc();
   317     if (!g_pVFrame)
   317     if (!g_pVFrame)
   318         return FatalError("Could not allocate frame");
   318         return FatalError("Could not allocate frame");
   319 
   319 
       
   320     g_pVFrame->width = g_Width;
       
   321     g_pVFrame->height = g_Height;
       
   322     g_pVFrame->format = AV_PIX_FMT_YUV420P;
   320     g_pVFrame->linesize[0] = g_Width;
   323     g_pVFrame->linesize[0] = g_Width;
   321     g_pVFrame->linesize[1] = g_Width/2;
   324     g_pVFrame->linesize[1] = g_Width/2;
   322     g_pVFrame->linesize[2] = g_Width/2;
   325     g_pVFrame->linesize[2] = g_Width/2;
   323     g_pVFrame->linesize[3] = 0;
   326     g_pVFrame->linesize[3] = 0;
   324     return 0;
   327     return 0;