rem: status_t frames_to_timecode(int32 l_frames, int * hours, int * minutes, int * seconds, int * frames, const timecode_info * code = NULL)
add: status_t frames_to_timecode(int32 l_frames, int * hours, int * minutes, int * seconds, int * frames, const timecode_info * code)
context: status_t frames_to_timecode(int32 l_frames, int * hours, int * minutes, int * seconds, int * frames, const timecode_info * code = NULL){	int fps_div;	int total_mins;	int32 extra_frames;	int32 extra_frames2;	CALLED();	if (code) {		// We have a valid timecode_info so use it		fps_div = code->fps_div;		if (code->every_nth > 0) {			// Handle Drop Frames format			total_mins = l_frames / fps_div / 60;			// "every_nth" minute we gain "drop_frames" "except_nth" minute			extra_frames = code->drop_frames*(total_mins/code->every_nth) - code->drop_frames*(total_mins/code->except_nth);			l_frames += extra_frames;			total_mins = l_frames / fps_div / 60;			extra_frames2 = code->drop_frames*(total_mins/code->every_nth) - code->drop_frames*(total_mins/code->except_nth);			// Gaining frames may mean that we gain more frames so we keep adjusting until no more to adjust			while (extra_frames != extra_frames2) {				l_frames += extra_frames2 - extra_frames;				extra_frames = extra_frames2;							total_mins = l_frames / fps_div / 60;				extra_frames2 = code->drop_frames*(total_mins/code->every_nth) - code->drop_frames*(total_mins/code->except_nth);			}						// l_frames should now include all adjusted frames		}	} else {		// no timecode_info so set default NTSC :-(		fps_div = 30;		// NTSC Default		total_mins = l_frames / fps_div / 60;		// "every_nth" minute we gain "drop_frames" "except_nth" minute		extra_frames = 2*(total_mins) - 2*(total_mins/10);		l_frames += extra_frames;		total_mins = l_frames / fps_div / 60;		extra_frames2 = 2*(total_mins) - 2*(total_mins/10);		// Gaining frames may mean that we gain more frames so we keep adjusting until no more to adjust		while (extra_frames != extra_frames2) {			l_frames += extra_frames2 - extra_frames;			extra_frames = extra_frames2;						total_mins = l_frames / fps_div / 60;			extra_frames2 = 2*(total_mins) - 2*(total_mins/10);		}	}		// convert frames to seconds leaving the remainder as frames	*seconds = l_frames / fps_div;		// DIV	*frames = l_frames % fps_div;		// MOD	// Normalise to Hours Minutes Seconds Frames	*minutes = *seconds / 60;	*seconds = *seconds % 60;	*hours = *minutes / 60;	*minutes = *minutes % 60;	return B_OK;}