Lines Matching refs:avpkt
87 int *got_frame, AVPacket *avpkt) in imm5_decode_frame() argument
94 … if (avpkt->size > 24 && avpkt->data[8] <= 1 && AV_RL32(avpkt->data + 4) + 24ULL <= avpkt->size) { in imm5_decode_frame()
95 int codec_type = avpkt->data[1]; in imm5_decode_frame()
96 int index = avpkt->data[10]; in imm5_decode_frame()
97 int new_size = AV_RL32(avpkt->data + 4); in imm5_decode_frame()
109 ret = av_packet_make_writable(avpkt); in imm5_decode_frame()
121 avpkt->data += 24 - offset; in imm5_decode_frame()
122 avpkt->size = new_size + offset; in imm5_decode_frame()
124 memcpy(avpkt->data, IMM5_units[index].bits, IMM5_units[index].len); in imm5_decode_frame()
126 memcpy(avpkt->data + off, IMM5_units[12].bits, IMM5_units[12].len); in imm5_decode_frame()
128 memcpy(avpkt->data + off, IMM5_units[13].bits, IMM5_units[13].len); in imm5_decode_frame()
131 avpkt->data += 24; in imm5_decode_frame()
132 avpkt->size -= 24; in imm5_decode_frame()
136 ret = avcodec_send_packet(codec_avctx, avpkt); in imm5_decode_frame()
160 return avpkt->size; in imm5_decode_frame()