hedgewars/avwrapper/avwrapper.c
changeset 11353 7ab863821864
parent 11352 ce154ffb9a8b
child 11396 b5afd7b48472
equal deleted inserted replaced
11352:ce154ffb9a8b 11353:7ab863821864
   271        of which frame timestamps are represented. for fixed-fps content,
   271        of which frame timestamps are represented. for fixed-fps content,
   272        timebase should be 1/framerate and timestamp increments should be
   272        timebase should be 1/framerate and timestamp increments should be
   273        identically 1. */
   273        identically 1. */
   274     g_pVideo->time_base.den = g_pVStream->time_base.den = g_Framerate.num;
   274     g_pVideo->time_base.den = g_pVStream->time_base.den = g_Framerate.num;
   275     g_pVideo->time_base.num = g_pVStream->time_base.num = g_Framerate.den;
   275     g_pVideo->time_base.num = g_pVStream->time_base.num = g_Framerate.den;
   276     //g_pVideo->gop_size = 12; /* emit one intra frame every twelve frames at most */
   276 
   277     g_pVideo->pix_fmt = AV_PIX_FMT_YUV420P;
   277     g_pVideo->pix_fmt = AV_PIX_FMT_YUV420P;
   278 
   278 
   279     // set quality
   279     // set quality
   280     if (g_VQuality > 100)
   280     if (g_VQuality > 100)
   281         g_pVideo->bit_rate = g_VQuality;
   281         g_pVideo->bit_rate = g_VQuality;