]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - mp4.c
aac: Let mp4ff_set_sample_position() return void.
[paraslash.git] / mp4.c
diff --git a/mp4.c b/mp4.c
index e6f6a0b7a7cc14b492530f881d60d88049170570..761eb375a615942175d3aa2a247aa5a12f1fda3d 100644 (file)
--- a/mp4.c
+++ b/mp4.c
@@ -1502,15 +1502,11 @@ static int32_t mp4ff_sample_to_offset(const mp4ff_t * f, const int32_t track,
        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,