hedgewars/avwrapper/avwrapper.c
changeset 11543 3617c611406b
parent 11401 7012234df6c4
child 11612 b7d5d75469ee
equal deleted inserted replaced
11542:64a5ab2c4f00 11543:3617c611406b
   516     {
   516     {
   517         if (avio_open(&g_pContainer->pb, g_pContainer->filename, AVIO_FLAG_WRITE) < 0)
   517         if (avio_open(&g_pContainer->pb, g_pContainer->filename, AVIO_FLAG_WRITE) < 0)
   518             return FatalError("Could not open output file (%s)", g_pContainer->filename);
   518             return FatalError("Could not open output file (%s)", g_pContainer->filename);
   519     }
   519     }
   520 
   520 
       
   521     g_pVFrame->pts = -1;
       
   522 
   521     // write the stream header, if any
   523     // write the stream header, if any
   522     avformat_write_header(g_pContainer, NULL);
   524     return avformat_write_header(g_pContainer, NULL);
   523 
       
   524     g_pVFrame->pts = -1;
       
   525     return 0;
       
   526 }
   525 }
   527 
   526 
   528 AVWRAP_DECL int AVWrapper_Close()
   527 AVWRAP_DECL int AVWrapper_Close()
   529 {
   528 {
   530     int ret;
   529     int ret;