diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-09-13 00:11:56 +0300 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-10-17 22:56:30 +0300 |
commit | 278c308ceae6b8d7bac1dfc24518821aae603988 (patch) | |
tree | 3117d01acfc7268aed67db95eb4c7f98fe2511cb /libavcodec/mpeg12.h | |
parent | 03f982bbca4211108477e772db9a339517ecde37 (diff) |
mpeg12: Add a common function to find the best frame rate
This will be used later in both the mpeg2_metadata filter and the
VAAPI MPEG-2 encoder. Also adds a unit test.
(cherry picked from commit b5859e0b04bdbe12c97cb12ac10a45d51d2d73c9)
Diffstat (limited to 'libavcodec/mpeg12.h')
-rw-r--r-- | libavcodec/mpeg12.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/mpeg12.h b/libavcodec/mpeg12.h index f551504b8c..1ec99f17e1 100644 --- a/libavcodec/mpeg12.h +++ b/libavcodec/mpeg12.h @@ -73,4 +73,8 @@ void ff_mpeg1_encode_mb(MpegEncContext *s, int16_t block[8][64], void ff_mpeg1_encode_init(MpegEncContext *s); void ff_mpeg1_encode_slice_header(MpegEncContext *s); +void ff_mpeg12_find_best_frame_rate(AVRational frame_rate, + int *code, int *ext_n, int *ext_d, + int nonstandard); + #endif /* AVCODEC_MPEG12_H */ |