100l: Fix crash in SPDIF muxer.
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Wed, 17 Nov 2010 23:23:25 +0000 (23:23 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Wed, 17 Nov 2010 23:23:25 +0000 (23:23 +0000)
Originally committed as revision 25762 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/spdifenc.c

index ed02b2e..0dcf98c 100644 (file)
@@ -253,6 +253,7 @@ static int spdif_write_packet(struct AVFormatContext *s, AVPacket *pkt)
     IEC958Context *ctx = s->priv_data;
     int ret, padding;
 
+    ctx->out_buf = pkt->data;
     ctx->out_bytes = pkt->size;
     ctx->length_code = FFALIGN(pkt->size, 2) << 3;