Don't write an empty spdif header in spdif muxers write_header function before actual...
authorJoakim Plate <elupus@ecce.se>
Wed, 7 Apr 2010 19:40:46 +0000 (19:40 +0000)
committerBenjamin Larsson <banan@ludd.ltu.se>
Wed, 7 Apr 2010 19:40:46 +0000 (19:40 +0000)
Patch by Elupus.

Originally committed as revision 22814 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/spdif.c

index 95d2e20..9b4a861 100644 (file)
@@ -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;
 }