c->packet_stream_index = pkt.stream_index;
ctx = c->rtp_ctx[c->packet_stream_index];
if(!ctx) {
- av_free_packet(&pkt);
+ av_packet_unref(&pkt);
break;
}
codec = ctx->streams[0]->codec;
codec->frame_number++;
if (len == 0) {
- av_free_packet(&pkt);
+ av_packet_unref(&pkt);
goto redo;
}
}
- av_free_packet(&pkt);
+ av_packet_unref(&pkt);
}
}
break;
}
mpeg4_count--;
}
- av_free_packet(&pkt);
+ av_packet_unref(&pkt);
}
}