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