aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/movenchint.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-05-21 07:08:29 +0000
committerMartin Storsjö <martin@martin.st>2010-05-21 07:08:29 +0000
commit648e41b342595ab11770ac99aa405971568d86d2 (patch)
tree193d9dc058e51aa55a7f8c2e2bb291246592dc1a /libavformat/movenchint.c
parent9a761250699dc179c8e31caa55b1a785a5601e5e (diff)
downloadffmpeg-648e41b342595ab11770ac99aa405971568d86d2.tar.gz
Take ff_write_chained in use in the mov rtp hinter and in the rtsp muxer
Originally committed as revision 23208 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/movenchint.c')
-rw-r--r--libavformat/movenchint.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/libavformat/movenchint.c b/libavformat/movenchint.c
index d90ac67911..2ebe8b808f 100644
--- a/libavformat/movenchint.c
+++ b/libavformat/movenchint.c
@@ -21,6 +21,7 @@
#include "movenc.h"
#include "libavutil/intreadwrite.h"
+#include "internal.h"
int ff_mov_init_hinting(AVFormatContext *s, int index, int src_index)
{
@@ -430,7 +431,6 @@ int ff_mov_add_hinted_packet(AVFormatContext *s, AVPacket *pkt,
int size;
ByteIOContext *hintbuf = NULL;
AVPacket hint_pkt;
- AVPacket local_pkt;
int ret = 0, count;
if (!rtp_ctx)
@@ -441,15 +441,7 @@ int ff_mov_add_hinted_packet(AVFormatContext *s, AVPacket *pkt,
sample_queue_push(&trk->sample_queue, pkt, sample);
/* Feed the packet to the RTP muxer */
- local_pkt = *pkt;
- local_pkt.stream_index = 0;
- local_pkt.pts = av_rescale_q(pkt->pts,
- s->streams[pkt->stream_index]->time_base,
- rtp_ctx->streams[0]->time_base);
- local_pkt.dts = av_rescale_q(pkt->dts,
- s->streams[pkt->stream_index]->time_base,
- rtp_ctx->streams[0]->time_base);
- av_write_frame(rtp_ctx, &local_pkt);
+ ff_write_chained(rtp_ctx, 0, pkt, s);
/* Fetch the output from the RTP muxer, open a new output buffer
* for next time. */