100l: Fix crash in SPDIF muxer.

Originally committed as revision 25762 to svn://svn.ffmpeg.org/ffmpeg/trunk
oldabi
Carl Eugen Hoyos 14 years ago
parent 0985e1a3ca
commit 4b6bfbe2b7
  1. 1
      libavformat/spdifenc.c

@ -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