summaryrefslogtreecommitdiff
path: root/rotord/src/libavwrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/libavwrapper.h')
-rw-r--r--rotord/src/libavwrapper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/rotord/src/libavwrapper.h b/rotord/src/libavwrapper.h
index 2f1f31e..4b24b02 100644
--- a/rotord/src/libavwrapper.h
+++ b/rotord/src/libavwrapper.h
@@ -252,6 +252,10 @@ namespace libav {
if (props) return props->Channels;
else return 0;
}
+ int get_number_samples(){
+ if (props) return props->NumSamples;
+ else return 0;
+ }
int64_t get_channel_layout(){
if (props) return props->ChannelLayout;
else return 0;