[PATCH] spdifenc: fix uninitialized variable

Anssi Hannula anssi.hannula
Wed Nov 17 17:41:52 CET 2010


---
 libavformat/spdifenc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/spdifenc.c b/libavformat/spdifenc.c
index b21cbbf..ff457f8 100644
--- a/libavformat/spdifenc.c
+++ b/libavformat/spdifenc.c
@@ -412,6 +412,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;
 
-- 
1.7.3


--------------070103040503080602030001--



More information about the ffmpeg-devel mailing list