Lines Matching defs:pkt
150 AVPacket pkt;
151 av_init_packet(&pkt);
157 pkt.size= avcodec_encode_audio(c, audio_outbuf, audio_outbuf_size, samples);
160 pkt.pts= av_rescale_q(c->coded_frame->pts, c->time_base, st->time_base);
161 pkt.flags |= PKT_FLAG_KEY;
162 pkt.stream_index= st->index;
163 pkt.data= audio_outbuf;
166 if (av_interleaved_write_frame(oc, &pkt) != 0) {
367 AVPacket pkt;
368 av_init_packet(&pkt);
370 pkt.flags |= PKT_FLAG_KEY;
371 pkt.stream_index= st->index;
372 pkt.data= (uint8_t *)picture;
373 pkt.size= sizeof(AVPicture);
375 ret = av_interleaved_write_frame(oc, &pkt);
381 AVPacket pkt;
382 av_init_packet(&pkt);
385 pkt.pts= av_rescale_q(c->coded_frame->pts, c->time_base, st->time_base);
387 pkt.flags |= PKT_FLAG_KEY;
388 pkt.stream_index= st->index;
389 pkt.data= video_outbuf;
390 pkt.size= out_size;
393 ret = av_interleaved_write_frame(oc, &pkt);