vocenc: use new header from codec tag 4
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 25 Jun 2012 01:38:29 +0000 (03:38 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 25 Jun 2012 01:45:29 +0000 (03:45 +0200)
this matches sox and should fix ticket1119

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/vocenc.c
tests/ref/lavf/voc_s16

index 496532279157c44bced49a867692d20d10c63391..4e382bf26fa5486a3b540e209302938049e0e849 100644 (file)
@@ -52,7 +52,7 @@ static int voc_write_packet(AVFormatContext *s, AVPacket *pkt)
     AVIOContext *pb = s->pb;
 
     if (!voc->param_written) {
-        if (enc->codec_tag > 0xFF) {
+        if (enc->codec_tag > 3) {
             avio_w8(pb, VOC_TYPE_NEW_VOICE_DATA);
             avio_wl24(pb, pkt->size + 12);
             avio_wl32(pb, enc->sample_rate);
index d404fe345d63681dd1c45afd8105708084e6e6fe..23e5aab3c3e40c0ec63e7d690bc75fa0632435a2 100644 (file)
@@ -1,3 +1,3 @@
-1d7be2b6527b76a33d2185ec6fb23f91 *./tests/data/lavf/lavf.s16.voc
-180437 ./tests/data/lavf/lavf.s16.voc
+a8225786fdbf5a2a19d1eeaf15f28632 *./tests/data/lavf/lavf.s16.voc
+180439 ./tests/data/lavf/lavf.s16.voc
 ./tests/data/lavf/lavf.s16.voc CRC=0x7bd585ff