summaryrefslogtreecommitdiff
path: root/libavdevice/pulse_audio_enc.c
diff options
context:
space:
mode:
authorMuhammad Faiz <mfcc64@gmail.com>2017-04-22 15:56:47 +0700
committerMuhammad Faiz <mfcc64@gmail.com>2017-04-23 14:35:08 +0700
commit8103c595223613c08e44bcf56ae7098d3c31be8b (patch)
tree21e77c23e1fc919160d76887178926619e3f1468 /libavdevice/pulse_audio_enc.c
parent9f030ee00f049a09cb3b74dbd0314bcf626bef10 (diff)
downloadffmpeg-8103c595223613c08e44bcf56ae7098d3c31be8b.tar.gz
avdevice: do not use AVFrame accessor
Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libavdevice/pulse_audio_enc.c')
-rw-r--r--libavdevice/pulse_audio_enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/pulse_audio_enc.c b/libavdevice/pulse_audio_enc.c
index 6fb634ee2b..0efcf0fe7e 100644
--- a/libavdevice/pulse_audio_enc.c
+++ b/libavdevice/pulse_audio_enc.c
@@ -681,9 +681,9 @@ static int pulse_write_frame(AVFormatContext *h, int stream_index,
AVERROR(EINVAL) : 0;
pkt.data = (*frame)->data[0];
- pkt.size = (*frame)->nb_samples * av_get_bytes_per_sample((*frame)->format) * av_frame_get_channels(*frame);
+ pkt.size = (*frame)->nb_samples * av_get_bytes_per_sample((*frame)->format) * (*frame)->channels;
pkt.dts = (*frame)->pkt_dts;
- pkt.duration = av_frame_get_pkt_duration(*frame);
+ pkt.duration = (*frame)->pkt_duration;
return pulse_write_packet(h, &pkt);
}