提交 0b1bd1b2 编写于 作者: V Vittorio Giovara

lavd: Drop unneeded av_init_packet()s

The input packet is already unref'd by the calling function.
上级 390b95b8
......@@ -861,7 +861,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
#endif
int res;
av_init_packet(pkt);
if ((res = mmap_read_frame(s1, pkt)) < 0) {
return res;
}
......
......@@ -511,7 +511,6 @@ static int x11grab_read_packet(AVFormatContext *s1, AVPacket *pkt)
nanosleep(&ts, NULL);
}
av_init_packet(pkt);
pkt->data = image->data;
pkt->size = s->frame_size;
pkt->pts = curtime;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册