summaryrefslogtreecommitdiff
path: root/apps/codecs/libffmpegFLAC
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libffmpegFLAC')
-rw-r--r--apps/codecs/libffmpegFLAC/decoder.c2
-rw-r--r--apps/codecs/libffmpegFLAC/decoder.h3
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,