提交 a5b737e6 编写于 作者: A Anton Khirnov

tests/api-band-test: simplify code

上级 9e4225cf
......@@ -167,10 +167,8 @@ static int video_decode(const char *input_filename)
continue;
}
if (result < 0)
result = avcodec_send_packet(ctx, NULL);
else
result = avcodec_send_packet(ctx, pkt);
// pkt will be empty on read error/EOF
result = avcodec_send_packet(ctx, pkt);
av_packet_unref(pkt);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册