Revision 92eb8232 libavformat/riff.c

View differences:

libavformat/riff.c
278 278

  
279 279
    if(!enc->codec_tag || enc->codec_tag > 0xffff)
280 280
       enc->codec_tag = codec_get_tag(codec_wav_tags, enc->codec_id);
281
    if(!enc->codec_tag)
281
    if(!enc->codec_tag || enc->codec_tag > 0xffff)
282 282
        return -1;
283 283

  
284 284
    put_le16(pb, enc->codec_tag);

Also available in: Unified diff