mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
lavc: Drop deprecated destruct_packet related functions
Deprecated in 10/2012.
This commit is contained in:
parent
dc70c19476
commit
01bcc2d5c2
12 changed files with 2 additions and 144 deletions
|
|
@ -1095,9 +1095,6 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||
AVIContext *avi = s->priv_data;
|
||||
AVIOContext *pb = s->pb;
|
||||
int err;
|
||||
#if FF_API_DESTRUCT_PACKET
|
||||
void *dstr;
|
||||
#endif
|
||||
|
||||
if (CONFIG_DV_DEMUXER && avi->dv_demux) {
|
||||
int size = avpriv_dv_get_packet(avi->dv_demux, pkt);
|
||||
|
|
@ -1213,18 +1210,8 @@ resync:
|
|||
|
||||
if (CONFIG_DV_DEMUXER && avi->dv_demux) {
|
||||
AVBufferRef *avbuf = pkt->buf;
|
||||
#if FF_API_DESTRUCT_PACKET
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
dstr = pkt->destruct;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
size = avpriv_dv_produce_packet(avi->dv_demux, pkt,
|
||||
pkt->data, pkt->size);
|
||||
#if FF_API_DESTRUCT_PACKET
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
pkt->destruct = dstr;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
pkt->buf = avbuf;
|
||||
pkt->flags |= AV_PKT_FLAG_KEY;
|
||||
if (size < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue