aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2008-03-30 03:40:03 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2008-03-30 03:40:03 +0000
commit6e330816d45006d4c1a322b25c2022d1a93c390f (patch)
tree996c70025f17a1cce8e2a9c3e89e30f287528de4
parentf3eec1cf526a59805ccf85af3c44cd81fcff0520 (diff)
downloadffmpeg-6e330816d45006d4c1a322b25c2022d1a93c390f.tar.gz
fix Ogg/FLAC header size
Originally committed as revision 12626 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/oggenc.c4
-rw-r--r--tests/libav.regression.ref4
2 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/oggenc.c b/libavformat/oggenc.c
index af2c5de122..16b6b22255 100644
--- a/libavformat/oggenc.c
+++ b/libavformat/oggenc.c
@@ -88,8 +88,8 @@ static int ogg_build_flac_headers(const uint8_t *extradata, int extradata_size,
uint8_t *p;
if (extradata_size != 34)
return -1;
- oggstream->header_len[0] = 79;
- oggstream->header[0] = av_mallocz(79); // per ogg flac specs
+ oggstream->header_len[0] = 51;
+ oggstream->header[0] = av_mallocz(51); // per ogg flac specs
p = oggstream->header[0];
bytestream_put_byte(&p, 0x7F);
bytestream_put_buffer(&p, "FLAC", 4);
diff --git a/tests/libav.regression.ref b/tests/libav.regression.ref
index 402c329b24..16c1b4727e 100644
--- a/tests/libav.regression.ref
+++ b/tests/libav.regression.ref
@@ -84,8 +84,8 @@ ae3a23a7ea13c92a2909445ca8144dcd *./tests/data/b-libav.aif
8d117c49d6b210abe783d1b0b897cec7 *./tests/data/b-libav.voc
32768 ./tests/data/b-libav.voc
./tests/data/b-libav.voc CRC=0x49972c8c
-d7e6e9091a600b7208b29500be94aa89 *./tests/data/b-libav.ogg
-23624 ./tests/data/b-libav.ogg
+8ac1fa6e0ee5d47ea98aea17b67d5908 *./tests/data/b-libav.ogg
+23596 ./tests/data/b-libav.ogg
./tests/data/b-libav.ogg CRC=0x93baa056
ce356ce2708cb6033ab5d762da93cfd4 *./tests/data/b-libav-yuv420p.yuv
304128 ./tests/data/b-libav-yuv420p.yuv