Skip to content

Commit

Permalink
lavdev/lavfi: add debug traces in lavfi_read_packet()
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Sabatini committed Aug 31, 2011
1 parent 22ee131 commit 6da590d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libavdevice/lavfi.c
Expand Up @@ -230,11 +230,14 @@ static int lavfi_read_packet(AVFormatContext *avctx, AVPacket *pkt)
if (ret < 0)
return ret;
d = av_rescale_q(picref->pts, tb, AV_TIME_BASE_Q);
av_dlog(avctx, "sink_idx:%d time:%f\n", i, d);

if (d < min_pts) {
min_pts = d;
min_pts_sink_idx = i;
}
}
av_dlog(avctx, "min_pts_sink_idx:%i\n", min_pts_sink_idx);

av_vsink_buffer_get_video_buffer_ref(lavfi->sinks[min_pts_sink_idx],
&picref, 0);
Expand Down

0 comments on commit 6da590d

Please sign in to comment.