diff options
author | Michael Niedermayer | 2013-01-04 21:18:21 +0100 |
---|---|---|
committer | Michael Niedermayer | 2013-01-06 13:58:46 +0100 |
commit | 3db02b83e7d455d939e30832dbb802527c0937e2 (patch) | |
tree | 3cfcb491d340aa1a125735121ffa3c036d5d11ba /libavcodec/dnxhddata.c | |
parent | 11e1466b432f661c7605ee23203f9cdc1020a4f3 (diff) |
dnxhd: Add avpriv_dnxhd_get_frame_size()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dnxhddata.c')
-rw-r--r-- | libavcodec/dnxhddata.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/dnxhddata.c b/libavcodec/dnxhddata.c index 9e2e014b43..c433d9d13e 100644 --- a/libavcodec/dnxhddata.c +++ b/libavcodec/dnxhddata.c @@ -1027,6 +1027,14 @@ int ff_dnxhd_get_cid_table(int cid) return -1; } +int avpriv_dnxhd_get_frame_size(int cid) +{ + int i = ff_dnxhd_get_cid_table(cid); + if (i<0) + return i; + return ff_dnxhd_cid_table[i].frame_size; +} + int ff_dnxhd_find_cid(AVCodecContext *avctx, int bit_depth) { int i, j; |