id,summary,reporter,owner,description,type,status,priority,component,version,resolution,keywords,cc,blockedby,blocking,reproduced,analyzed
1827,Segfault with multi-channel DCA/DTS file when downsampling.,Cigaes,,"Using [http://samples.ffmpeg.org/A-codecs/DTS/lotr_5.1_768.dts]:

{{{
./ffmpeg_g -request_channels 2 -i ~/tmp/samples/lotr_5.1_768.dts
}}}
{{{
ffmpeg version N-45639-g9b762e2 Copyright (c) 2000-2012 the FFmpeg developers
  built on Oct 17 2012 16:20:10 with gcc 4.7 (Debian 4.7.1-7)
  configuration: --enable-shared --disable-static --enable-gpl --enable-libx264 --enable-libass --enable-libfreetype --assert-level=1 --enable-avresample
  libavutil      51. 76.100 / 51. 76.100
  libavcodec     54. 66.100 / 54. 66.100
  libavformat    54. 33.100 / 54. 33.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 19.103 /  3. 19.103
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
dca_filter_channels: 0 -> 2 -> 0x835b00
dca_filter_channels: 1 -> 0 -> 0x834aa0
dca_filter_channels: 2 -> 1 -> 0x8352a0
dca_filter_channels: 3 -> 4 -> 0x836b00
dca_filter_channels: 4 -> 5 -> 0x837300
dca_filter_channels: 5 -> -1 -> (nil)
}}}

The problem happens since dcadec was moved to planar formats. The {{{dca_filter_channels}}} lines are debug I added, and they show the problem: the {{{channel_order_tab}}} array, a pointer to {{{dca_channel_reorder_lfe[9]}}} actually, only takes the code 5 channels into account, while the file actually has 7 channels.",defect,closed,important,avcodec,git-master,fixed,dca regression crash SIGSEGV,,,,1,0
