[FFmpeg-devel] [PATCH] Improve track number decoding for some WMA files

Patrice Bensoussan patrice.bensoussan
Sun Sep 9 12:33:33 CEST 2007


A few words about the problem: there are two ways to store the track  
number information in WMA files. WM/Track (which is 0-based and is  
deprecated) and WM/TrackNumber which is 1-based which is the  
recommended way to store this information.

Some WMA files contain both WM/Track and WM/TrackNumber but have an  
incorrect value for WM/Track (1-based instead of 0-based). This patch  
makes sure that WM/TrackNumber is used when present and that WM/Track  
value doesn't overwrite the correct track number stored in WM/ 
TrackNumber. Basically WM/Track is ignored if WM/TrackNumber is present.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix_bad_track.txt
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070909/7a9b2809/attachment.txt>
-------------- next part --------------

More information about the ffmpeg-devel mailing list