Skip to content
Snippets Groups Projects
Commit b70fd6fa authored by Clément Bœsch's avatar Clément Bœsch
Browse files

ffprobe: use av_get_pix_fmt_name() instead of accessing av_pix_fmt_descriptors.

parent 03d0ea0c
No related branches found
No related tags found
No related merge requests found
...@@ -416,7 +416,7 @@ static void show_stream(struct writer *w, AVFormatContext *fmt_ctx, int stream_i ...@@ -416,7 +416,7 @@ static void show_stream(struct writer *w, AVFormatContext *fmt_ctx, int stream_i
display_aspect_ratio.num, display_aspect_ratio.num,
display_aspect_ratio.den); display_aspect_ratio.den);
} }
print_str("pix_fmt", dec_ctx->pix_fmt != PIX_FMT_NONE ? av_pix_fmt_descriptors[dec_ctx->pix_fmt].name : "unknown"); print_str("pix_fmt", av_x_if_null(av_get_pix_fmt_name(dec_ctx->pix_fmt), "unknown"));
print_int("level", dec_ctx->level); print_int("level", dec_ctx->level);
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment