aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wmaenc.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2007-06-02 01:41:07 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2007-06-02 01:41:07 +0000
commit2c124cb65c24cc7d0538260726045d68442eef25 (patch)
tree3752a8d02aa478d977264e8ce0438f49c92a4aca /libavcodec/wmaenc.c
parent29b29011e5631c4e867baf42258a00886d142841 (diff)
downloadffmpeg-2c124cb65c24cc7d0538260726045d68442eef25.tar.gz
Use AV_xx throughout libavcodec
Originally committed as revision 9169 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wmaenc.c')
-rw-r--r--libavcodec/wmaenc.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c
index e902a6aff4..e35f363b63 100644
--- a/libavcodec/wmaenc.c
+++ b/libavcodec/wmaenc.c
@@ -45,19 +45,13 @@ static int encode_init(AVCodecContext * avctx){
if (avctx->codec->id == CODEC_ID_WMAV1) {
extradata= av_malloc(4);
avctx->extradata_size= 4;
- extradata[0] = flags1;
- extradata[1] = flags1>>8;
- extradata[2] = flags2;
- extradata[3] = flags2>>8;
+ AV_WL16(extradata, flags1);
+ AV_WL16(extradata+2, flags2);
} else if (avctx->codec->id == CODEC_ID_WMAV2) {
extradata= av_mallocz(10);
avctx->extradata_size= 10;
- extradata[0] = flags1;
- extradata[1] = flags1>>8;
- extradata[2] = flags1>>16;
- extradata[3] = flags1>>24;
- extradata[4] = flags2;
- extradata[5] = flags2>>8;
+ AV_WL32(extradata, flags1);
+ AV_WL16(extradata+4, flags2);
}else
assert(0);
avctx->extradata= extradata;