| 905 | } |
| 906 | |
| 907 | const char* hb_video_framerate_get_name(int framerate) |
| 908 | { |
| 909 | if (framerate > hb_video_rates_first_item->rate || |
| 910 | framerate < hb_video_rates_last_item ->rate) |
| 911 | goto fail; |
| 912 | |
| 913 | const hb_rate_t *video_framerate = NULL; |
| 914 | while ((video_framerate = hb_video_framerate_get_next(video_framerate)) != NULL) |
| 915 | { |
| 916 | if (video_framerate->rate == framerate) |
| 917 | { |
| 918 | return video_framerate->name; |
| 919 | } |
| 920 | } |
| 921 | |
| 922 | fail: |
| 923 | return NULL; |
| 924 | } |
| 925 | |
| 926 | const char* hb_video_framerate_sanitize_name(const char *name) |
| 927 | { |
no test coverage detected