[FFmpeg-cvslog] doc/examples/remuxing: dont use the input codec_tag, it may be invalid tor the output

Jason Hsu git at videolan.org
Wed Mar 5 16:11:17 CET 2014


ffmpeg | branch: master | Jason Hsu <support at tuoxie.me> | Tue Mar  4 15:11:57 2014 +0800| [8fb4dba89d7b52280e2c1f7d2ddbfc7ccffb91fd] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8fb4dba89d7b52280e2c1f7d2ddbfc7ccffb91fd
---

 doc/examples/remuxing.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/doc/examples/remuxing.c b/doc/examples/remuxing.c
index cdb2f6b..39d9dee 100644
--- a/doc/examples/remuxing.c
+++ b/doc/examples/remuxing.c
@@ -99,6 +99,7 @@ int main(int argc, char **argv)
             fprintf(stderr, "Failed to copy context from input to output stream codec context\n");
             goto end;
         }
+        out_stream->codec->codec_tag = 0;
         if (ofmt_ctx->oformat->flags & AVFMT_GLOBALHEADER)
             out_stream->codec->flags |= CODEC_FLAG_GLOBAL_HEADER;
     }



More information about the ffmpeg-cvslog mailing list