Browse code

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

Joakim Plate authored on 2010/04/08 04:40:46
Showing 1 changed files
... ...
@@ -238,10 +238,6 @@ static int spdif_write_header(AVFormatContext *s)
238 238
         av_log(s, AV_LOG_ERROR, "codec not supported\n");
239 239
         return -1;
240 240
     }
241
-    put_le16(s->pb, 0);
242
-    put_le16(s->pb, 0);
243
-    put_le16(s->pb, 0);
244
-    put_le16(s->pb, 0);
245 241
     return 0;
246 242
 }
247 243