diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-10-06 13:29:37 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-10-12 12:45:39 +0200 |
commit | 59ee9f78b0cc4fb84ae606fa317d8102ad32a627 (patch) | |
tree | 253bd434e8b7416d62d8d5f16f1f443cf05c7bd4 /libavfilter/vf_showinfo.c | |
parent | 50ba57e0ce63d9904269ea0728936a0c79f8bfb5 (diff) | |
download | ffmpeg-59ee9f78b0cc4fb84ae606fa317d8102ad32a627.tar.gz |
lavfi: do not use av_pix_fmt_descriptors directly.
Diffstat (limited to 'libavfilter/vf_showinfo.c')
-rw-r--r-- | libavfilter/vf_showinfo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index c931cb3665..4b78276f97 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -46,8 +46,9 @@ static int end_frame(AVFilterLink *inlink) AVFilterContext *ctx = inlink->dst; ShowInfoContext *showinfo = ctx->priv; AVFilterBufferRef *picref = inlink->cur_buf; + const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format); uint32_t plane_checksum[4] = {0}, checksum = 0; - int i, plane, vsub = av_pix_fmt_descriptors[inlink->format].log2_chroma_h; + int i, plane, vsub = desc->log2_chroma_h; for (plane = 0; picref->data[plane] && plane < 4; plane++) { size_t linesize = av_image_get_linesize(picref->format, picref->video->w, plane); @@ -67,7 +68,7 @@ static int end_frame(AVFilterLink *inlink) "checksum:%u plane_checksum:[%u %u %u %u]\n", showinfo->frame, picref->pts, picref->pts * av_q2d(inlink->time_base), picref->pos, - av_pix_fmt_descriptors[picref->format].name, + desc->name, picref->video->pixel_aspect.num, picref->video->pixel_aspect.den, picref->video->w, picref->video->h, !picref->video->interlaced ? 'P' : /* Progressive */ |