[FFmpeg-devel] [PATCH] recover from truncated aiff

Maksym Veremeyenko verem
Mon Nov 24 18:02:28 CET 2008


Hi!

During transcoding aiff files that is been truncated for 4 or 2 bytes i 
get a message from pcm encoder:
[pcm_s24be @ 0x93b4c70]invalid PCM packet
Error while decoding stream #0.0

This output happens on last audio packet because it size is not 
divisible by sample size.

This situation could be handled by two ways:

patch *aiff_handle_broken_sample.patch* fix packet size and notify about 
that.

patch *aiff_save_broken_sample.patch* fix packet size and seek back to 
position where broken sample start.

Any of fixes are correct?
If not, how such situation should be handled?

-- 
________________________________________
Maksym Veremeyenko
Senior System Administrator
IT Department
Ukrainian Music Television Channel "M1"

DDI. +380 44 205-44-92
Tel. +380 44 205-44-80
Fax. +380 44 205-44-82
Cell. +380-67-447-22-43

E-mail : Maksym.Veremeyenko at m1stereo.tv
Web site: www.m1stereo.tv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aiff_handle_broken_sample.patch
Type: text/x-patch
Size: 598 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081124/3eb7e3f3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aiff_save_broken_sample.patch
Type: text/x-patch
Size: 584 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081124/3eb7e3f3/attachment-0001.bin>



More information about the ffmpeg-devel mailing list