[FFmpeg-trac] #3550(avformat:new): [wavdec]DTS in wave can not be recognized
FFmpeg
trac at avcodec.org
Fri Apr 11 09:08:40 CEST 2014
#3550: [wavdec]DTS in wave can not be recognized
-------------------------------------+-------------------------------------
Reporter: adam_csheng | Type: defect
Status: new | Priority: normal
Component: avformat | Version: git-
Keywords: | master
Blocking: | Blocked By:
Analyzed by developer: 1 | Reproduced by developer: 1
-------------------------------------+-------------------------------------
Summary of the bug:
How to reproduce:
{{{
% ffprobe $ISSUE_FILE
Issue output:
"
csheng at BG2BLT05:~/ffmpeg/ffmpeg$ ./ffprobe ../WorstCase.wav
ffprobe version N-62341-gd9fef74 Copyright (c) 2007-2014 the FFmpeg
developers
built on Apr 11 2014 03:00:27 with gcc 4.6 (Ubuntu/Linaro
4.6.3-1ubuntu5)
configuration:
libavutil 52. 75.100 / 52. 75.100
libavcodec 55. 58.103 / 55. 58.103
libavformat 55. 36.103 / 55. 36.103
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 4.100 / 4. 4.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 18.100 / 0. 18.100
Input #0, wav, from '../WorstCase.wav':
Duration: 00:00:41.89, bitrate: 1536 kb/s
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2
channels, s16, 1536 kb/s
"
ffmpeg version: N-62341-gd9fef74 (master)
}}}
But it should be dts.
After modify as below:
{{{
diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index daea64e..a865b76 100644
--- a/libavformat/wavdec.c
+++ b/libavformat/wavdec.c
@@ -114,7 +114,7 @@ static void handle_stream_probing(AVStream *st)
{
if (st->codec->codec_id == AV_CODEC_ID_PCM_S16LE) {
st->request_probe = AVPROBE_SCORE_EXTENSION;
- st->probe_packets = FFMIN(st->probe_packets, 4);
+ st->probe_packets = FFMIN(st->probe_packets, 14);
}
}
}}}
It should be correct:
{{{
csheng at BG2BLT05:~/ffmpeg/ffmpeg$ ./ffprobe ../WorstCase.wav
ffprobe version N-62341-gd9fef74 Copyright (c) 2007-2014 the FFmpeg
developers
built on Apr 11 2014 03:00:27 with gcc 4.6 (Ubuntu/Linaro
4.6.3-1ubuntu5)
configuration:
libavutil 52. 75.100 / 52. 75.100
libavcodec 55. 58.103 / 55. 58.103
libavformat 55. 36.103 / 55. 36.103
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 4.100 / 4. 4.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 18.100 / 0. 18.100
[dca @ 0x2c36e80] Not a valid DCA frame
[dca @ 0x2c36e80] Number of channels changed in DCA decoder (2 -> 6)
Input #0, wav, from '../WorstCase.wav':
Duration: 00:00:41.89, bitrate: 1536 kb/s
Stream #0:0: Audio: dts (DTS) ([1][0][0][0] / 0x0001), 48000 Hz,
5.1(side), fltp, 384 kb/s
}}}
If you need issue file, please contact me.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3550>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list