Opened 12 years ago
Closed 12 years ago
#1827 closed defect (fixed)
Segfault with multi-channel DCA/DTS file when downsampling.
Reported by: | Cigaes | Owned by: | |
---|---|---|---|
Priority: | important | Component: | avcodec |
Version: | git-master | Keywords: | dca regression crash SIGSEGV |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
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.
Change History (3)
comment:1 by , 12 years ago
Keywords: | regression crash SIGSEGV added; segfault removed |
---|---|
Priority: | normal → important |
comment:2 by , 12 years ago
Reproduced by developer: | set |
---|---|
Status: | new → open |
comment:3 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
Fixed by Nick Brereton and Michael Niedermayer.
Note:
See TracTickets
for help on using tickets.
Regression since e88ca80 / 64c312a