UINT8 buf1[size];
UINT8 *buf1;
static int rm_write_audio(AVFormatContext *s, UINT8 *buf, int size){    UINT8 buf1[size];    RMContext *rm = s->priv_data;    ByteIOContext *pb = &s->pb;    StreamInfo *stream = rm->audio_stream;    int i;    write_packet_header(s, stream, size, stream->enc->key_frame);        /* for AC3, the words seems to be reversed */    for(i=0;i<size;i+=2) {        buf1[i] = buf[i+1];        buf1[i+1] = buf[i];    }    put_buffer(pb, buf1, size);    put_flush_packet(pb);    stream->nb_frames++;    return 0;}