Commit 839df90c authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos Committed by Luca Barbato

lxf: Support 16-channel files

Reported, analyzed and tested by Gabriel Gerard.
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 779951cd
......@@ -270,7 +270,7 @@ static int lxf_read_header(AVFormatContext *s)
if ((video_params >> 22) & 1)
av_log(s, AV_LOG_WARNING, "VBI data not yet supported\n");
if ((lxf->channels = (disk_params >> 2) & 0xF)) {
if ((lxf->channels = 1 << (disk_params >> 4 & 3) + 1)) {
if (!(st = avformat_new_stream(s, NULL)))
return AVERROR(ENOMEM);
......
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