[FFmpeg-trac] #2244(avformat:closed): ffmpeg creates invalid odd-byte length wav files
FFmpeg
trac at avcodec.org
Sat Feb 9 01:37:38 CET 2013
#2244: ffmpeg creates invalid odd-byte length wav files
------------------------------------+------------------------------------
Reporter: dericed | Owner:
Type: defect | Status: closed
Priority: normal | Component: avformat
Version: git-master | Resolution: fixed
Keywords: wav | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by cehoyos):
Interestingly, FFmpeg (still) claims that the original file is invalid:
{{{
$ ffmpeg -i oddbytedatalength.wav -f null -
ffmpeg version N-49708-ga92816c Copyright (c) 2000-2013 the FFmpeg
developers
built on Feb 9 2013 01:34:27 with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl --disable-indev=jack
libavutil 52. 17.101 / 52. 17.101
libavcodec 54. 91.102 / 54. 91.102
libavformat 54. 61.104 / 54. 61.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 35.101 / 3. 35.101
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, wav, from 'oddbytedatalength.wav':
Metadata:
encoder : Lavf54.61.104
Duration: 00:00:01.00, bitrate: 1153 kb/s
Stream #0:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, mono,
s32, 1152 kb/s
Output #0, null, to 'pipe:':
Metadata:
encoder : Lavf54.61.104
Stream #0:0: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s24le -> pcm_s16le)
Press [q] to stop, [?] for help
Multiple frames in a packet from stream 0
[pcm_s24le @ 0x2c713e0] Invalid PCM packet, data has size 2 but at least a
size of 3 was expected
Error while decoding stream #0:0: Invalid data found when processing input
size=N/A time=00:00:01.00 bitrate=N/A
video:0kB audio:94kB subtitle:0 global headers:0kB muxing overhead
-100.022856%
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2244#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list