[FFmpeg-cvslog] avformat: do not use AVFrame accessor
Muhammad Faiz
git at videolan.org
Sun Apr 23 11:13:15 EEST 2017
ffmpeg | branch: master | Muhammad Faiz <mfcc64 at gmail.com> | Sat Apr 22 15:55:45 2017 +0700| [9f030ee00f049a09cb3b74dbd0314bcf626bef10] | committer: Muhammad Faiz
avformat: do not use AVFrame accessor
Reviewed-by: wm4 <nfxjfg at googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9f030ee00f049a09cb3b74dbd0314bcf626bef10
---
libavformat/mux.c | 2 +-
libavformat/uncodedframecrcenc.c | 2 +-
2 files changed, 2 insertions(+), 2 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;
}
diff --git a/libavformat/uncodedframecrcenc.c b/libavformat/uncodedframecrcenc.c
index ecc42d2869..2f1a14ca97 100644
--- a/libavformat/uncodedframecrcenc.c
+++ b/libavformat/uncodedframecrcenc.c
@@ -79,7 +79,7 @@ static void audio_frame_cksum(AVBPrint *bp, AVFrame *frame)
int nb_planes, nb_samples, p;
const char *name;
- nb_planes = av_frame_get_channels(frame);
+ nb_planes = frame->channels;
nb_samples = frame->nb_samples;
if (!av_sample_fmt_is_planar(frame->format)) {
nb_samples *= nb_planes;
More information about the ffmpeg-cvslog
mailing list