From 5fd3e6965e58aee59e9bf26e38e2a3925535ab21 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 25 Jun 2012 03:38:29 +0200 Subject: vocenc: use new header from codec tag 4 this matches sox and should fix ticket1119 Signed-off-by: Michael Niedermayer --- libavformat/vocenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/vocenc.c') diff --git a/libavformat/vocenc.c b/libavformat/vocenc.c index 4965322791..4e382bf26f 100644 --- a/libavformat/vocenc.c +++ b/libavformat/vocenc.c @@ -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); -- cgit v1.2.3