Lines Matching refs:datasize
111 int datasize; in read_packet() local
117 datasize = avio_rl16(pb); in read_packet()
118 if (datasize > 42) { in read_packet()
126 ret = ff_voc_get_packet(s, pkt, c93->audio, datasize - 26); in read_packet()
151 datasize = avio_rl16(pb); /* video frame size */ in read_packet()
153 ret = av_new_packet(pkt, datasize + 768 + 1); in read_packet()
157 pkt->size = datasize + 1; in read_packet()
159 ret = avio_read(pb, pkt->data + 1, datasize); in read_packet()
160 if (ret < datasize) { in read_packet()
164 datasize = avio_rl16(pb); /* palette size */ in read_packet()
165 if (datasize) { in read_packet()
166 if (datasize != 768) { in read_packet()
167 av_log(s, AV_LOG_ERROR, "invalid palette size %u\n", datasize); in read_packet()
171 ret = avio_read(pb, pkt->data + pkt->size, datasize); in read_packet()
172 if (ret < datasize) { in read_packet()