Lines Matching refs:stuffing_size
662 int size, payload_size, startcode, id, stuffing_size, i, header_len;
803 stuffing_size = payload_size - av_fifo_size(stream->fifo);
820 stuffing_size += timestamp_len;
822 stuffing_size += payload_size - trailer_size;
828 if (stuffing_size < 0) {
829 stuffing_size = pad_packet_bytes;
831 stuffing_size += pad_packet_bytes;
836 if (stuffing_size < 0)
837 stuffing_size = 0;
838 if (stuffing_size > 16) { /*<=16 for MPEG-1, <=32 for MPEG-2*/
839 pad_packet_bytes += stuffing_size;
840 packet_size -= stuffing_size;
841 payload_size -= stuffing_size;
842 stuffing_size = 0;
845 nb_frames= get_nb_frames(ctx, stream, payload_size - stuffing_size);
852 for(i=0;i<stuffing_size;i++)
874 avio_w8(ctx->pb, header_len - 3 + stuffing_size);
909 for(i=0;i<stuffing_size;i++)
930 assert(payload_size - stuffing_size <= av_fifo_size(stream->fifo));
931 av_fifo_generic_read(stream->fifo, ctx->pb, payload_size - stuffing_size, &avio_write);
932 stream->bytes_to_iframe -= payload_size - stuffing_size;
935 stuffing_size= 0;
954 return payload_size - stuffing_size;