[FFmpeg-cvslog] r26130 - trunk/libavformat/spdifenc.c
cehoyos
subversion
Wed Dec 29 17:48:40 CET 2010
Author: cehoyos
Date: Wed Dec 29 17:48:40 2010
New Revision: 26130
Log:
Fix wrong bitstream mode for AC-3.
Noticed by CrystalP from XBMC.
Patch by Anssi Hannula, anssi d hannula a iki d fi
Modified:
trunk/libavformat/spdifenc.c
Modified: trunk/libavformat/spdifenc.c
==============================================================================
--- trunk/libavformat/spdifenc.c Wed Dec 29 17:42:14 2010 (r26129)
+++ trunk/libavformat/spdifenc.c Wed Dec 29 17:48:40 2010 (r26130)
@@ -76,7 +76,7 @@ typedef struct IEC958Context {
static int spdif_header_ac3(AVFormatContext *s, AVPacket *pkt)
{
IEC958Context *ctx = s->priv_data;
- int bitstream_mode = pkt->data[6] & 0x7;
+ int bitstream_mode = pkt->data[5] & 0x7;
ctx->data_type = IEC958_AC3 | (bitstream_mode << 8);
ctx->pkt_offset = AC3_FRAME_SIZE << 2;
More information about the ffmpeg-cvslog
mailing list