Diff of /xbmc/cores/dvdplayer/Codecs/ffmpeg/libavformat/spdif.c [fc3fc9] .. [a03c42]  Maximize  Restore

Repo status: analyzing...

Switch to unified view

a/xbmc/cores/dvdplayer/Codecs/ffmpeg/libavformat/spdif.c b/xbmc/cores/dvdplayer/Codecs/ffmpeg/libavformat/spdif.c
...
...
106
}
106
}
107
107
108
static int spdif_header_ac3(AVFormatContext *s, AVPacket *pkt)
108
static int spdif_header_ac3(AVFormatContext *s, AVPacket *pkt)
109
{
109
{
110
    IEC958Context *ctx = s->priv_data;
110
    IEC958Context *ctx = s->priv_data;
111
    int bitstream_mode = pkt->data[6] & 0x7;
111
    int bitstream_mode = pkt->data[5] & 0x7;
112
112
113
    ctx->data_type  = IEC958_AC3 | (bitstream_mode << 8);
113
    ctx->data_type  = IEC958_AC3 | (bitstream_mode << 8);
114
    ctx->pkt_offset = AC3_FRAME_SIZE << 2;
114
    ctx->pkt_offset = AC3_FRAME_SIZE << 2;
115
    ctx->pkt_size   = FFALIGN(pkt->size, 2);
115
    ctx->pkt_size   = FFALIGN(pkt->size, 2);
116
    return 0;
116
    return 0;

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks