Lines Matching defs:pkt
78 static int write_muxed_file(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt)
81 AVCodecParameters *par = s->streams[pkt->stream_index]->codecpar;
83 AVPacket *const pkt2 = ffformatcontext(s)->pkt;
96 st->id = pkt->stream_index;
100 ret = av_packet_ref(pkt2, pkt);
116 static int write_packet_pipe(AVFormatContext *s, AVPacket *pkt)
120 int ret = write_muxed_file(s, s->pb, pkt);
124 avio_write(s->pb, pkt->data, pkt->size);
137 static int write_packet(AVFormatContext *s, AVPacket *pkt)
142 AVCodecParameters *par = s->streams[pkt->stream_index]->codecpar;
160 if (av_get_frame_filename2(filename, sizeof(filename), s->url, pkt->pts, AV_FRAME_FILENAME_FLAGS_MULTIPLE) < 0) {
207 if ((ret = write_and_close(s, &pb[0], pkt->data , ysize)) < 0 ||
208 (ret = write_and_close(s, &pb[1], pkt->data + ysize , usize)) < 0 ||
209 (ret = write_and_close(s, &pb[2], pkt->data + ysize + usize, usize)) < 0)
212 ret = write_and_close(s, &pb[3], pkt->data + ysize + 2*usize, ysize);
214 if ((ret = write_muxed_file(s, pb[0], pkt)) < 0)
218 ret = write_and_close(s, &pb[0], pkt->data, pkt->size);