Mercurial > audlegacy-plugins
diff src/ffmpeg/ffmpeg.c @ 841:9b50e71f7307 trunk
[svn] - implement shorten support more correctly.
| author | nenolod |
|---|---|
| date | Mon, 12 Mar 2007 17:37:02 -0700 |
| parents | 8561bcf928a3 |
| children | 47144a91649d |
line wrap: on
line diff
--- a/src/ffmpeg/ffmpeg.c Mon Mar 12 17:20:48 2007 -0700 +++ b/src/ffmpeg/ffmpeg.c Mon Mar 12 17:37:02 2007 -0700 @@ -94,7 +94,7 @@ InputPlugin *get_iplugin_info(void); -gchar *ffmpeg_fmts[] = { "wma", NULL }; +gchar *ffmpeg_fmts[] = { "wma", "shn", NULL }; InputPlugin ffmpeg_ip = { @@ -399,7 +399,7 @@ if(ffmpeg_seekpos != -1) { - av_seek_frame(ic, ffmpeg_idx, ffmpeg_seekpos * 1000000LL, 0); + av_seek_frame(ic, ffmpeg_idx, ffmpeg_seekpos * 1000000LL, AVSEEK_FLAG_BYTE); playback->output->flush(ffmpeg_seekpos * 1000); ffmpeg_seekpos = -1; }
