aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-10-31 22:48:44 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-10-31 22:48:44 +0000
commit2839dc974d8cf4155b0a8ddd8983f17abcff405e (patch)
tree1e0b81d3ba9c795f274725a8eb7c04e96383fe20 /ffmpeg.c
parenteed299b897ee99738572aec66a64f2920c6aa472 (diff)
downloadffmpeg-2839dc974d8cf4155b0a8ddd8983f17abcff405e.tar.gz
Use AV_RL32() in opt_codec_tag().
Originally committed as revision 25618 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 7ad055d919..edea4fd0fe 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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, 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 = AV_RL32(arg);
return 0;
}