From c6cf6ae69d73572ac3a7479a76d5b34ac44e9fea Mon Sep 17 00:00:00 2001
From: Joakim Plate <elupus@ecce.se>
Date: Wed, 7 Apr 2010 19:40:46 +0000
Subject: [PATCH] Don't write an empty spdif header in spdif muxers
 write_header function before actual data starts. Patch by Elupus.

Originally committed as revision 22814 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavformat/spdif.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/libavformat/spdif.c b/libavformat/spdif.c
index 95d2e206fa..9b4a8617b7 100644
--- a/libavformat/spdif.c
+++ b/libavformat/spdif.c
@@ -238,10 +238,6 @@ static int spdif_write_header(AVFormatContext *s)
         av_log(s, AV_LOG_ERROR, "codec not supported\n");
         return -1;
     }
-    put_le16(s->pb, 0);
-    put_le16(s->pb, 0);
-    put_le16(s->pb, 0);
-    put_le16(s->pb, 0);
     return 0;
 }