| 676 | } |
| 677 | |
| 678 | static int pulse_write_frame(AVFormatContext *h, int stream_index, |
| 679 | AVFrame **frame, unsigned flags) |
| 680 | { |
| 681 | AVPacket pkt; |
| 682 | |
| 683 | /* Planar formats are not supported yet. */ |
| 684 | if (flags & AV_WRITE_UNCODED_FRAME_QUERY) |
| 685 | return av_sample_fmt_is_planar(h->streams[stream_index]->codecpar->format) ? |
| 686 | AVERROR(EINVAL) : 0; |
| 687 | |
| 688 | pkt.data = (*frame)->data[0]; |
| 689 | pkt.size = (*frame)->nb_samples * av_get_bytes_per_sample((*frame)->format) * (*frame)->ch_layout.nb_channels; |
| 690 | pkt.dts = (*frame)->pkt_dts; |
| 691 | pkt.duration = (*frame)->duration; |
| 692 | return pulse_write_packet(h, &pkt); |
| 693 | } |
| 694 | |
| 695 | |
| 696 | static void pulse_get_output_timestamp(AVFormatContext *h, int stream, int64_t *dts, int64_t *wall) |
nothing calls this directly
no test coverage detected