Commit 7cbfb74e authored by rtogni's avatar rtogni

Move dnet-ac3 byte-swapping code close to audio packet read code

Fixed version of patch in
[FFmpeg-devel] [PATCH 5/6] rmdec.c: move around rm_ac3_swap_bytes()



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11039 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c8a22c80
......@@ -615,6 +615,7 @@ ff_rm_parse_packet (AVFormatContext *s, AVStream *st, int len, AVPacket *pkt,
}
} else
av_get_packet(pb, pkt, len);
rm_ac3_swap_bytes(st, pkt);
} else
av_get_packet(pb, pkt, len);
......@@ -707,6 +708,7 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
}
pkt->size = len;
}
rm_ac3_swap_bytes(st, pkt);
} else {
int seq=1;
resync:
......@@ -724,7 +726,6 @@ resync:
}
}
rm_ac3_swap_bytes(st, pkt);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment