Browse Source

Support reading 16-channel lxf files.

Fixes ticket #1608.

Reported, analyzed and tested by Gabriel Gerard.
tags/n1.0
Carl Eugen Hoyos 13 years ago
parent
commit
e701b0cf75
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/lxfdec.c

+ 1
- 1
libavformat/lxfdec.c View File

@@ -272,7 +272,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);



Loading…
Cancel
Save