]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
aac: Move declaration of mp4ff_set_sample_position() to mp4.h.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 9 Aug 2021 16:43:44 +0000 (18:43 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 30 May 2022 19:37:35 +0000 (21:37 +0200)
We used to provide the declaration of mp4ff_set_sample_position()
in aac_afh.c. With the internal mp4.c this is no longer necessary as
we may as well declare the function in mp4.h.

Remove the documentation since it has become stale.

aac_afh.c
mp4.h

index d8ad48a1527a0b223c02a94ba9e65cf3b462d109..b16cea27371b3d329ca36fcddb1c6d8c9b881c67 100644 (file)
--- a/aac_afh.c
+++ b/aac_afh.c
@@ -108,20 +108,6 @@ static void aac_afh_close(void *afh_context)
        free(c);
 }
 
-/**
- * Libmp4ff function to reposition the file to the given sample.
- *
- * \param f The opaque handle returned by mp4ff_open_read().
- * \param track The number of the (audio) track.
- * \param sample Destination.
- *
- * We need this function to obtain the offset of the sample within the audio
- * file. Unfortunately, it is not exposed in the mp4ff header.
- *
- * \return This function always returns 0.
- */
-int32_t mp4ff_set_sample_position(mp4ff_t *f, const int32_t track, const int32_t sample);
-
 static int aac_afh_get_chunk(uint32_t chunk_num, void *afh_context,
                const char **buf, uint32_t *len)
 {
diff --git a/mp4.h b/mp4.h
index 92c995c14b0671bd59f0f5a0f73f6ad2de626580..c3897011d2264ea60126386acb3bb30857c04096 100644 (file)
--- a/mp4.h
+++ b/mp4.h
@@ -99,6 +99,7 @@ typedef struct
     mp4ff_metadata_t tags;
 } mp4ff_t;
 
+int32_t 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);