diff options
| author | Adam Boot <rotator@gmail.com> | 2006-11-08 22:00:45 +0000 |
|---|---|---|
| committer | Adam Boot <rotator@gmail.com> | 2006-11-08 22:00:45 +0000 |
| commit | c1916afa41f46dc525e9f40c31616c75b4235ca6 (patch) | |
| tree | 216420d3e082425131ad5cd7f19e1745624266f9 /apps/codecs/libffmpegFLAC | |
| parent | 0a220b6da6ac800e5969c7d47f5add3cc36fc49b (diff) | |
| download | rockbox-c1916afa41f46dc525e9f40c31616c75b4235ca6.zip rockbox-c1916afa41f46dc525e9f40c31616c75b4235ca6.tar.gz rockbox-c1916afa41f46dc525e9f40c31616c75b4235ca6.tar.bz2 rockbox-c1916afa41f46dc525e9f40c31616c75b4235ca6.tar.xz | |
Sample-accurate seeking for FLAC
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11474 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libffmpegFLAC')
| -rw-r--r-- | apps/codecs/libffmpegFLAC/decoder.c | 2 | ||||
| -rw-r--r-- | apps/codecs/libffmpegFLAC/decoder.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/apps/codecs/libffmpegFLAC/decoder.c b/apps/codecs/libffmpegFLAC/decoder.c index 4dbae97..3d934d9 100644 --- a/apps/codecs/libffmpegFLAC/decoder.c +++ b/apps/codecs/libffmpegFLAC/decoder.c @@ -584,5 +584,7 @@ int flac_decode_frame(FLACContext *s, break; } + s->framesize = (get_bits_count(&s->gb)+7)>>3; + return 0; } diff --git a/apps/codecs/libffmpegFLAC/decoder.h b/apps/codecs/libffmpegFLAC/decoder.h index 632bb1b..affec0a 100644 --- a/apps/codecs/libffmpegFLAC/decoder.h +++ b/apps/codecs/libffmpegFLAC/decoder.h @@ -35,6 +35,9 @@ typedef struct FLACContext { int bitstream_size; int bitstream_index; + + int sample_skip; + int framesize; } FLACContext; int flac_decode_frame(FLACContext *s, |