This function exports the exact sps.num_reorder_frames value
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -70,6 +70,12 @@ static const enum PixelFormat hwaccel_pixfmt_list_h264_jpeg_420[] = { |
70 | 70 |
PIX_FMT_NONE |
71 | 71 |
}; |
72 | 72 |
|
73 |
+int avpriv_h264_has_num_reorder_frames(AVCodecContext *avctx) |
|
74 |
+{ |
|
75 |
+ H264Context *h = avctx->priv_data; |
|
76 |
+ return h ? h->sps.num_reorder_frames : 0; |
|
77 |
+} |
|
78 |
+ |
|
73 | 79 |
/** |
74 | 80 |
* Check if the top & left blocks are available if needed and |
75 | 81 |
* change the dc mode so it only uses the available blocks. |