hedgewars/avwrapper/avwrapper.c
branch0.9.20
changeset 9903 dae338c8c19c
parent 9901 e33178322a8f
child 9998 736015b847e3
equal deleted inserted replaced
9901:e33178322a8f 9903:dae338c8c19c
   498     // output buffered frames
   498     // output buffered frames
   499     if (g_pVCodec->capabilities & CODEC_CAP_DELAY)
   499     if (g_pVCodec->capabilities & CODEC_CAP_DELAY)
   500     {
   500     {
   501         do
   501         do
   502             ret = WriteFrame(NULL);
   502             ret = WriteFrame(NULL);
   503         while (ret);
   503         while (ret >= 0);
   504         if (ret < 0)
   504         if (ret < 0)
   505             return ret;
   505             return ret;
   506     }
   506     }
   507     // output any remaining audio
   507     // output any remaining audio
   508     do
   508     do
   509     {
   509     {
   510         ret = WriteAudioFrame();
   510         ret = WriteAudioFrame();
   511     }
   511     }
   512     while(ret);
   512     while(ret >= 0);
   513     if (ret < 0)
   513     if (ret < 0)
   514         return ret;
   514         return ret;
   515 
   515 
   516     // write the trailer, if any.
   516     // write the trailer, if any.
   517     av_write_trailer(g_pContainer);
   517     av_write_trailer(g_pContainer);