Revision 649b918c libavformat/avienc.c

View differences:

libavformat/avienc.c
246 246
    
247 247
    put_le16(pb, enc->bits_per_sample ? enc->bits_per_sample : 24); /* depth */
248 248
    /* compression type */
249
    put_le32(pb, for_asf ? codec_get_asf_tag(tags, enc->codec_id) : enc->codec_tag);
249
    put_le32(pb, for_asf ? (enc->codec_tag ? enc->codec_tag : codec_get_asf_tag(tags, enc->codec_id)) : enc->codec_tag); //
250 250
    put_le32(pb, enc->width * enc->height * 3);
251 251
    put_le32(pb, 0);
252 252
    put_le32(pb, 0);

Also available in: Unified diff