• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/ffmpeg/libavformat/

Lines Matching refs:pktl

629     AVPacketList *pktl = av_mallocz(sizeof(AVPacketList));
630 if (!pktl)
634 (*plast_pktl)->next = pktl;
636 *packet_buffer = pktl;
639 *plast_pktl = pktl;
640 pktl->pkt= *pkt;
641 return &pktl->pkt;
650 AVPacketList *pktl = s->raw_packet_buffer;
652 if (pktl) {
653 *pkt = pktl->pkt;
660 s->raw_packet_buffer = pktl->next;
662 av_free(pktl);
670 if (!pktl || ret == AVERROR(EAGAIN))
690 if(!pktl && (st->codec->codec_id != CODEC_ID_PROBE ||
820 AVPacketList *pktl= s->packet_buffer;
828 for(; pktl; pktl= pktl->next){
829 if(pktl->pkt.stream_index != stream_index)
832 if(pktl->pkt.pts != AV_NOPTS_VALUE && pktl->pkt.pts == pktl->pkt.dts)
833 pktl->pkt.pts += st->first_dts;
835 if(pktl->pkt.dts != AV_NOPTS_VALUE)
836 pktl->pkt.dts += st->first_dts;
838 if(st->start_time == AV_NOPTS_VALUE && pktl->pkt.pts != AV_NOPTS_VALUE)
839 st->start_time= pktl->pkt.pts;
847 AVPacketList *pktl= s->packet_buffer;
852 for(; pktl; pktl= pktl->next){
853 if(pktl->pkt.stream_index == pkt->stream_index){
854 if(pktl->pkt.pts != pktl->pkt.dts || pktl->pkt.dts != AV_NOPTS_VALUE || pktl->pkt.duration)
859 pktl= s->packet_buffer;
864 for(; pktl; pktl= pktl->next){
865 if(pktl->pkt.stream_index != pkt->stream_index)
867 if(pktl->pkt.pts == pktl->pkt.dts && pktl->pkt.dts == AV_NOPTS_VALUE
868 && !pktl->pkt.duration){
869 pktl->pkt.dts= cur_dts;
871 pktl->pkt.pts= cur_dts;
873 pktl->pkt.duration= pkt->duration;
1176 AVPacketList *pktl;
1181 pktl = s->packet_buffer;
1182 if (pktl) {
1183 AVPacket *next_pkt= &pktl->pkt;
1186 while(pktl && next_pkt->pts == AV_NOPTS_VALUE){
1187 if( pktl->pkt.stream_index == next_pkt->stream_index
1188 && next_pkt->dts < pktl->pkt.dts
1189 && pktl->pkt.pts != pktl->pkt.dts //not b frame
1190 /*&& pktl->pkt.dts != AV_NOPTS_VALUE*/){
1191 next_pkt->pts= pktl->pkt.dts;
1193 pktl= pktl->next;
1195 pktl = s->packet_buffer;
1203 s->packet_buffer = pktl->next;
1204 av_free(pktl);
1211 if(pktl && ret != AVERROR(EAGAIN)){
1231 AVPacketList *pktl;
1234 pktl = s->packet_buffer;
1235 if (!pktl)
1237 s->packet_buffer = pktl->next;
1238 av_free_packet(&pktl->pkt);
1239 av_free(pktl);
1242 pktl = s->raw_packet_buffer;
1243 s->raw_packet_buffer = pktl->next;
1244 av_free_packet(&pktl->pkt);
1245 av_free(pktl);
2852 AVPacketList *pktl;
2864 pktl= s->packet_buffer;
2865 *out= pktl->pkt;
2867 s->packet_buffer= pktl->next;
2871 if(s->streams[out->stream_index]->last_in_packet_buffer == pktl)
2873 av_freep(&pktl);