|
|
@ -686,7 +686,14 @@ static int pulse_write_frame(AVFormatContext *h, int stream_index, |
|
|
|
pkt.data = (*frame)->data[0]; |
|
|
|
pkt.data = (*frame)->data[0]; |
|
|
|
pkt.size = (*frame)->nb_samples * av_get_bytes_per_sample((*frame)->format) * (*frame)->ch_layout.nb_channels; |
|
|
|
pkt.size = (*frame)->nb_samples * av_get_bytes_per_sample((*frame)->format) * (*frame)->ch_layout.nb_channels; |
|
|
|
pkt.dts = (*frame)->pkt_dts; |
|
|
|
pkt.dts = (*frame)->pkt_dts; |
|
|
|
pkt.duration = (*frame)->pkt_duration; |
|
|
|
#if FF_API_PKT_DURATION |
|
|
|
|
|
|
|
FF_DISABLE_DEPRECATION_WARNINGS |
|
|
|
|
|
|
|
if ((*frame)->pkt_duration) |
|
|
|
|
|
|
|
pkt.duration = (*frame)->pkt_duration; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
FF_ENABLE_DEPRECATION_WARNINGS |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
pkt.duration = (*frame)->duration; |
|
|
|
return pulse_write_packet(h, &pkt); |
|
|
|
return pulse_write_packet(h, &pkt); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|