equal
deleted
inserted
replaced
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); |