diff --git a/libavcodec/svq1.c b/libavcodec/svq1.c
index 957176e386f9a3284ccc0d2c881cf254520f576e..5e86162696f891e0e44e6b982a1f581e70e8df3f 100644
--- a/libavcodec/svq1.c
+++ b/libavcodec/svq1.c
@@ -905,7 +905,7 @@ static void svq1_write_header(SVQ1Context *s, int frame_type)
         /* no embedded string either */
 
         /* output 5 unknown bits (2 + 2 + 1) */
-        put_bits(&s->pb, 5, 0);
+        put_bits(&s->pb, 5, 2); /* 2 needed by quicktime decoder */
 
         for (i = 0; i < 7; i++)
         {
diff --git a/tests/ffmpeg.regression.ref b/tests/ffmpeg.regression.ref
index 328586aa417c0bdfc4a6ae8eaeb96f14d035a251..d4200c57505cdc7470ff276a719b9ce73e4afdd9 100644
--- a/tests/ffmpeg.regression.ref
+++ b/tests/ffmpeg.regression.ref
@@ -149,7 +149,7 @@ stddev:  8.86 PSNR:29.17 bytes:7602176
 14400000 ./data/a-dv.dv
 fc866b8879a34f5b440647e5135e4bfb *./data/out.yuv
 stddev:  8.45 PSNR:29.58 bytes:7602176
-979057a09f280acd2fba3b29de6125d1 *./data/a-svq1.mov
+f773501fd9152be933974676fd919ec6 *./data/a-svq1.mov
 1379847 ./data/a-svq1.mov
 bbff871d1475e1eee4231a08e075de2c *./data/out.yuv
 stddev: 10.99 PSNR:27.30 bytes:7602176
diff --git a/tests/rotozoom.regression.ref b/tests/rotozoom.regression.ref
index 53aa438e6eb258074fd8cc21e9fd03a8601d05dd..8554c5f6a73700969b2b1e284d2ae39849413b61 100644
--- a/tests/rotozoom.regression.ref
+++ b/tests/rotozoom.regression.ref
@@ -149,7 +149,7 @@ stddev:  2.99 PSNR:38.59 bytes:7602176
 14400000 ./data/a-dv.dv
 74b01209bb5e096d570dd4df112bb82d *./data/out.yuv
 stddev:  2.98 PSNR:38.61 bytes:7602176
-2905eb59262b093335b31df9f252c488 *./data/a-svq1.mov
+3f5b017c714eb1e74ea0c36bc193b3dd *./data/a-svq1.mov
 769547 ./data/a-svq1.mov
 44777d1ddbccd0ef7f8d08394465670c *./data/out.yuv
 stddev:  3.44 PSNR:37.38 bytes:7602176