Lines Matching defs:pkt
81 static int flac_write_picture(struct AVFormatContext *s, AVPacket *pkt)
89 const AVStream *st = s->streams[pkt->stream_index];
92 if (!pkt->data)
137 blocklen = 4 + 4 + mimelen + 4 + desclen + 4 + 4 + 4 + 4 + 4 + pkt->size;
162 avio_wb32(pb, pkt->size);
163 avio_write(pb, pkt->data, pkt->size);
178 AVPacket *pkt = st->priv_data;
179 if (!pkt)
181 ret = flac_write_picture(s, pkt);
182 av_packet_unref(pkt);
281 static int flac_write_audio_packet(struct AVFormatContext *s, AVPacket *pkt)
288 streaminfo = av_packet_get_side_data(pkt, AV_PKT_DATA_NEW_EXTRADATA,
295 if (pkt->size)
296 avio_write(s->pb, pkt->data, pkt->size);
303 AVPacket *const pkt = ffformatcontext(s)->pkt;
311 avpriv_packet_list_get(&c->queue, pkt);
312 if (write && (ret = flac_write_audio_packet(s, pkt)) < 0)
314 av_packet_unref(pkt);
356 static int flac_write_packet(struct AVFormatContext *s, AVPacket *pkt)
361 if (pkt->stream_index == c->audio_stream_idx) {
364 ret = avpriv_packet_list_put(&c->queue, pkt, NULL, 0);
371 return flac_write_audio_packet(s, pkt);
374 return flac_write_audio_packet(s, pkt);
376 AVStream *st = s->streams[pkt->stream_index];
385 " ignoring.\n", pkt->stream_index);
390 st->priv_data = av_packet_clone(pkt);