mirror of https://git.ffmpeg.org/ffmpeg.git
tests/api-band-test: simplify code
This commit is contained in:
parent
9e4225cf7f
commit
a5b737e625
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue