Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
... | ... |
@@ -1422,7 +1422,7 @@ static int av_write_uncoded_frame_internal(AVFormatContext *s, int stream_index, |
1422 | 1422 |
pkt.size = UNCODED_FRAME_PACKET_SIZE; |
1423 | 1423 |
pkt.pts = |
1424 | 1424 |
pkt.dts = frame->pts; |
1425 |
- pkt.duration = av_frame_get_pkt_duration(frame); |
|
1425 |
+ pkt.duration = frame->pkt_duration; |
|
1426 | 1426 |
pkt.stream_index = stream_index; |
1427 | 1427 |
pkt.flags |= AV_PKT_FLAG_UNCODED_FRAME; |
1428 | 1428 |
} |
... | ... |
@@ -79,7 +79,7 @@ static void audio_frame_cksum(AVBPrint *bp, AVFrame *frame) |
79 | 79 |
int nb_planes, nb_samples, p; |
80 | 80 |
const char *name; |
81 | 81 |
|
82 |
- nb_planes = av_frame_get_channels(frame); |
|
82 |
+ nb_planes = frame->channels; |
|
83 | 83 |
nb_samples = frame->nb_samples; |
84 | 84 |
if (!av_sample_fmt_is_planar(frame->format)) { |
85 | 85 |
nb_samples *= nb_planes; |