The function used to always return zero.
size_t offset;
assert(chunk_num <= INT_MAX);
- /* this function always returns zero */
mp4ff_set_sample_position(c->mp4ff, c->track, chunk_num);
offset = c->fpos;
ss = mp4ff_read_sample_getsize(c->mp4ff, c->track, chunk_num);
return chunk_offset2;
}
-int32_t mp4ff_set_sample_position(mp4ff_t * f, const int32_t track,
- const int32_t sample)
+void mp4ff_set_sample_position(mp4ff_t *f, const int32_t track,
+ const int32_t sample)
{
- int32_t offset;
-
- offset = mp4ff_sample_to_offset(f, track, sample);
+ int32_t offset = mp4ff_sample_to_offset(f, track, sample);
mp4ff_set_position(f, offset);
-
- return 0;
}
static int32_t mp4ff_audio_frame_size(const mp4ff_t * f, const int32_t track,
mp4ff_metadata_t tags;
} mp4ff_t;
-int32_t mp4ff_set_sample_position(mp4ff_t *f, const int32_t track, const int32_t sample);
+void mp4ff_set_sample_position(mp4ff_t *f, const int32_t track, const int32_t sample);
int32_t mp4ff_total_tracks(const mp4ff_t *f);
void mp4ff_get_decoder_config(const mp4ff_t *f, const int track,
unsigned char** ppBuf, unsigned int* pBufSize);