MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_video_framerate_get_name

Function hb_video_framerate_get_name

libhb/common.c:907–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

905}
906
907const 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
922fail:
923 return NULL;
924}
925
926const char* hb_video_framerate_sanitize_name(const char *name)
927{

Callers 1

Calls 1

Tested by

no test coverage detected