Browse Source

examples/muxing: add check on avformat_write_header() result

tags/n1.0
Stefano Sabatini 12 years ago
parent
commit
34b5b735f9
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      doc/examples/muxing.c

+ 4
- 1
doc/examples/muxing.c View File

@@ -469,7 +469,10 @@ int main(int argc, char **argv)
}

/* Write the stream header, if any. */
avformat_write_header(oc, NULL);
if (avformat_write_header(oc, NULL) < 0) {
fprintf(stderr, "Error occurred when opening output file\n");
return 1;
}

frame->pts = 0;
for (;;) {


Loading…
Cancel
Save