summaryrefslogtreecommitdiff
path: root/libavformat/movenc.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-12-09 21:19:57 +0200
committerMartin Storsjö <martin@martin.st>2011-12-11 01:37:26 +0200
commite2484fb644b8dc0a0704e4155100c897e6e9739c (patch)
tree634f9ec4fb31787af02a6e63ba4104ef64abbe20 /libavformat/movenc.h
parentda9cea77e314dad2fbc615a76085a0c330741f92 (diff)
movenc: Use the actual converted sample for RTP hinting
If an annex b bitstream is muxed into mov, the actual written sample is reformatted to mp4 syntax before writing. Currently, the RTP hints that copy data from the normal video track, where the payload data might be offset compared to the original sample that the RTP hinting used (when 3 byte annex b startcodes have been converted into 4 byte mp4 format startcodes). Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/movenc.h')
-rw-r--r--libavformat/movenc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/movenc.h b/libavformat/movenc.h
index bddae459da..9b14f24b7a 100644
--- a/libavformat/movenc.h
+++ b/libavformat/movenc.h
@@ -120,7 +120,8 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt);
int ff_mov_init_hinting(AVFormatContext *s, int index, int src_index);
int ff_mov_add_hinted_packet(AVFormatContext *s, AVPacket *pkt,
- int track_index, int sample);
+ int track_index, int sample,
+ uint8_t *sample_data, int sample_size);
void ff_mov_close_hinting(MOVTrack *track);
#endif /* AVFORMAT_MOVENC_H */