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.tar.gz rockbox-c1916afa41f46dc525e9f40c31616c75b4235ca6.zip |
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 4dbae972cb..3d934d9990 100644 --- a/apps/codecs/libffmpegFLAC/decoder.c +++ b/apps/codecs/libffmpegFLAC/decoder.c | |||
@@ -584,5 +584,7 @@ int flac_decode_frame(FLACContext *s, | |||
584 | break; | 584 | break; |
585 | } | 585 | } |
586 | 586 | ||
587 | s->framesize = (get_bits_count(&s->gb)+7)>>3; | ||
588 | |||
587 | return 0; | 589 | return 0; |
588 | } | 590 | } |
diff --git a/apps/codecs/libffmpegFLAC/decoder.h b/apps/codecs/libffmpegFLAC/decoder.h index 632bb1b823..affec0a5a3 100644 --- a/apps/codecs/libffmpegFLAC/decoder.h +++ b/apps/codecs/libffmpegFLAC/decoder.h | |||
@@ -35,6 +35,9 @@ typedef struct FLACContext { | |||
35 | 35 | ||
36 | int bitstream_size; | 36 | int bitstream_size; |
37 | int bitstream_index; | 37 | int bitstream_index; |
38 | |||
39 | int sample_skip; | ||
40 | int framesize; | ||
38 | } FLACContext; | 41 | } FLACContext; |
39 | 42 | ||
40 | int flac_decode_frame(FLACContext *s, | 43 | int flac_decode_frame(FLACContext *s, |