Browse Source

100l: Fix crash in SPDIF muxer.

Originally committed as revision 25762 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Carl Eugen Hoyos 14 years ago
parent
commit
4b6bfbe2b7
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/spdifenc.c

+ 1
- 0
libavformat/spdifenc.c View 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;



Loading…
Cancel
Save