[FFmpeg-devel] [PATCH] Use MKTAG() in opt_codec_tag().

Stefano Sabatini stefano.sabatini-lala
Fri Oct 29 01:23:47 CEST 2010


---
 ffmpeg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 3c92a26..bcda28a 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2840,7 +2840,7 @@ static void opt_codec_tag(const char *opt, const char *arg)
 
     *codec_tag = strtol(arg, &tail, 0);
     if (!tail || *tail)
-        *codec_tag = arg[0] + (arg[1]<<8) + (arg[2]<<16) + (arg[3]<<24);
+        *codec_tag = MKTAG(arg[0], arg[1], arg[2], arg[3]);
 }
 
 static void opt_map(const char *arg)
-- 
1.7.1




More information about the ffmpeg-devel mailing list