mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Fix wrong bitstream mode for AC-3.
Noticed by CrystalP from XBMC. Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 26130 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a4c8e0a82b
commit
836132ec43
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user