/*******************************************************************
                       MPEG time code routine
 *******************************************************************/

#define TIMECODE_C
#include "timecode.h"

void get_timecode(MPEG_IO *in, TIMECODE *out);

void get_timecode(MPEG_IO *in, TIMECODE *out)
{
	out->drop = get_bits(in, 1);
	out->hh = get_bits(in, 5);
	out->mm = get_bits(in, 6);
	out->padding = get_bits(in, 1);
	out->ss = get_bits(in, 6);
	out->ff = get_bits(in, 6);

	return;
}