提交 d4c1803e 编写于 作者: R Reimar Döffinger

Remove pointless setting of pkt->size, av_get_packet already handles this.

Originally committed as revision 20128 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 b46c98bf
......@@ -123,9 +123,6 @@ static int raw_read_packet(AVFormatContext *s, AVPacket *pkt)
if (ret <= 0) {
return AVERROR(EIO);
}
/* note: we need to modify the packet size here to handle the last
packet */
pkt->size = ret;
bps= av_get_bits_per_sample(s->streams[0]->codec->codec_id);
assert(bps); // if false there IS a bug elsewhere (NOT in this function)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册