diff options
author | Muhammad Faiz <mfcc64@gmail.com> | 2017-04-22 15:57:18 +0700 |
---|---|---|
committer | Muhammad Faiz <mfcc64@gmail.com> | 2017-04-23 14:40:30 +0700 |
commit | 6af050d7d0c3c73f3d62115152db82ebd2dc5d57 (patch) | |
tree | d1c7b6d4711dc095cab3f135f5c6433b4474364a /libavfilter/af_ashowinfo.c | |
parent | 8103c595223613c08e44bcf56ae7098d3c31be8b (diff) |
avfilter: do not use AVFrame accessor
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libavfilter/af_ashowinfo.c')
-rw-r--r-- | libavfilter/af_ashowinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/af_ashowinfo.c b/libavfilter/af_ashowinfo.c index a81729f7f7..9046e8d84a 100644 --- a/libavfilter/af_ashowinfo.c +++ b/libavfilter/af_ashowinfo.c @@ -199,7 +199,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) s->plane_checksums[0]; } - av_get_channel_layout_string(chlayout_str, sizeof(chlayout_str), av_frame_get_channels(buf), + av_get_channel_layout_string(chlayout_str, sizeof(chlayout_str), buf->channels, buf->channel_layout); av_log(ctx, AV_LOG_INFO, @@ -208,8 +208,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) "checksum:%08"PRIX32" ", inlink->frame_count_out, av_ts2str(buf->pts), av_ts2timestr(buf->pts, &inlink->time_base), - av_frame_get_pkt_pos(buf), - av_get_sample_fmt_name(buf->format), av_frame_get_channels(buf), chlayout_str, + buf->pkt_pos, + av_get_sample_fmt_name(buf->format), buf->channels, chlayout_str, buf->sample_rate, buf->nb_samples, checksum); |