summaryrefslogtreecommitdiff
path: root/libavformat/mux.c
diff options
context:
space:
mode:
authorMuhammad Faiz <mfcc64@gmail.com>2017-04-22 15:55:45 +0700
committerMuhammad Faiz <mfcc64@gmail.com>2017-04-23 14:30:53 +0700
commit9f030ee00f049a09cb3b74dbd0314bcf626bef10 (patch)
tree5624beb5b1b77ca943a564629c1eadd786c63cc8 /libavformat/mux.c
parent31f61b0d4f8d452becb44f044c739f9057900159 (diff)
avformat: do not use AVFrame accessor
Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libavformat/mux.c')
-rw-r--r--libavformat/mux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c
index 3a5e876913..4e21083a2b 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -1422,7 +1422,7 @@ static int av_write_uncoded_frame_internal(AVFormatContext *s, int stream_index,
pkt.size = UNCODED_FRAME_PACKET_SIZE;
pkt.pts =
pkt.dts = frame->pts;
- pkt.duration = av_frame_get_pkt_duration(frame);
+ pkt.duration = frame->pkt_duration;
pkt.stream_index = stream_index;
pkt.flags |= AV_PKT_FLAG_UNCODED_FRAME;
}