[FFmpeg-cvslog] r25618 - trunk/ffmpeg.c
stefano
subversion
Sun Oct 31 23:48:45 CET 2010
Author: stefano
Date: Sun Oct 31 23:48:44 2010
New Revision: 25618
Log:
Use AV_RL32() in opt_codec_tag().
Modified:
trunk/ffmpeg.c
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c Sun Oct 31 22:20:20 2010 (r25617)
+++ trunk/ffmpeg.c Sun Oct 31 23:48:44 2010 (r25618)
@@ -39,6 +39,7 @@
#include "libavcore/parseutils.h"
#include "libavutil/colorspace.h"
#include "libavutil/fifo.h"
+#include "libavutil/intreadwrite.h"
#include "libavutil/pixdesc.h"
#include "libavutil/avstring.h"
#include "libavutil/libm.h"
@@ -2868,7 +2869,7 @@ static int opt_codec_tag(const char *opt
*codec_tag = strtol(arg, &tail, 0);
if (!tail || *tail)
- *codec_tag = arg[0] + (arg[1]<<8) + (arg[2]<<16) + (arg[3]<<24);
+ *codec_tag = AV_RL32(arg);
return 0;
}
More information about the ffmpeg-cvslog
mailing list