ffprobe: do not try to decode empty packets.

Fixes sporadic decode failures and trac ticket #997.
pull/30/merge
Nicolas George 13 years ago
parent dd3043d1c0
commit b27383e453
  1. 2
      ffprobe.c

@ -1279,7 +1279,7 @@ static void read_packets(WriterContext *w, AVFormatContext *fmt_ctx)
}
if (do_read_frames) {
pkt1 = pkt;
while (1) {
while (pkt1.size) {
avcodec_get_frame_defaults(&frame);
ret = get_decoded_frame(fmt_ctx, &frame, &got_frame, &pkt1);
if (ret < 0 || !got_frame)

Loading…
Cancel
Save