Browse Source

doc/examples/remuxing: dont use the input codec_tag, it may be invalid tor the output

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Jason Hsu Michael Niedermayer 11 years ago
parent
commit
8fb4dba89d
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      doc/examples/remuxing.c

+ 1
- 0
doc/examples/remuxing.c View File

@@ -99,6 +99,7 @@ int main(int argc, char **argv)
fprintf(stderr, "Failed to copy context from input to output stream codec context\n"); fprintf(stderr, "Failed to copy context from input to output stream codec context\n");
goto end; goto end;
} }
out_stream->codec->codec_tag = 0;
if (ofmt_ctx->oformat->flags & AVFMT_GLOBALHEADER) if (ofmt_ctx->oformat->flags & AVFMT_GLOBALHEADER)
out_stream->codec->flags |= CODEC_FLAG_GLOBAL_HEADER; out_stream->codec->flags |= CODEC_FLAG_GLOBAL_HEADER;
} }


Loading…
Cancel
Save