Mercurial > libavformat.hg
changeset 667:57e9d1bdcb09 libavformat
VMD playing error patch by (Kostya (cannonball bw-team com>)
"I recently got a game called Lighthouse from Sierra with FMV in VMD
format. Some of them played OK, some of them FFmpeg refused to open,
some caused a crash.
I investigated files which couldn't be opened by FFmpeg and it appeared
that they had no audio (and bytes 2-3 from beginning of file contained
01 00, all other have 00 00 insted). Attached patch fixes this issue."
author | michael |
---|---|
date | Fri, 04 Feb 2005 03:38:33 +0000 |
parents | ffad4fdbd3d1 |
children | 9a6a30f512b2 |
files | sierravmd.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sierravmd.c Sat Jan 29 02:27:33 2005 +0000 +++ b/sierravmd.c Fri Feb 04 03:38:33 2005 +0000 @@ -185,7 +185,8 @@ /* each on-disk VMD frame has an audio part and a video part; demuxer * accounts them separately */ - vmd->frame_count *= 2; + if(vmd->sample_rate) + vmd->frame_count *= 2; raw_frame_table = NULL; vmd->frame_table = NULL; raw_frame_table_size = vmd->frame_count * BYTES_PER_FRAME_RECORD;