diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-02 23:16:59 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-02 23:16:59 +0200 |
commit | bafa1c7f383d6c1c0f3d207395fe6a574092b7ac (patch) | |
tree | 18e7d081959d878d980d72b668175a7233d81037 /libavcodec/h264.c | |
parent | 2c883c6acf033fe045dd3c90e997ab64001ef47a (diff) | |
download | ffmpeg-bafa1c7f383d6c1c0f3d207395fe6a574092b7ac.tar.gz |
h264: add avpriv_h264_has_num_reorder_frames()
This function exports the exact sps.num_reorder_frames value
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 0c840183b4..0958c09fc6 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -70,6 +70,12 @@ static const enum PixelFormat hwaccel_pixfmt_list_h264_jpeg_420[] = { PIX_FMT_NONE }; +int avpriv_h264_has_num_reorder_frames(AVCodecContext *avctx) +{ + H264Context *h = avctx->priv_data; + return h ? h->sps.num_reorder_frames : 0; +} + /** * Check if the top & left blocks are available if needed and * change the dc mode so it only uses the available blocks. |