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>
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user