You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavd: Drop unneeded av_init_packet()s
The input packet is already unref'd by the calling function.
This commit is contained in:
@@ -861,7 +861,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||||||
#endif
|
#endif
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
av_init_packet(pkt);
|
|
||||||
if ((res = mmap_read_frame(s1, pkt)) < 0) {
|
if ((res = mmap_read_frame(s1, pkt)) < 0) {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
@@ -511,7 +511,6 @@ static int x11grab_read_packet(AVFormatContext *s1, AVPacket *pkt)
|
|||||||
nanosleep(&ts, NULL);
|
nanosleep(&ts, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
av_init_packet(pkt);
|
|
||||||
pkt->data = image->data;
|
pkt->data = image->data;
|
||||||
pkt->size = s->frame_size;
|
pkt->size = s->frame_size;
|
||||||
pkt->pts = curtime;
|
pkt->pts = curtime;
|
||||||
|
Reference in New Issue
Block a user