OBJECT
} PrintElementType;
-typedef struct {
+typedef struct PrintElement {
const char *name;
PrintElementType type;
int64_t index;
int64_t nb_elems;
} PrintElement;
-typedef struct {
+typedef struct PrintContext {
PrintElement *prefix;
int level;
void (*print_header)(void);
}
avio_printf(probe_out, "%s", name);
- if (el && el->type == ARRAY)
+ if (el->type == ARRAY)
avio_printf(probe_out, ".%"PRId64"", el->nb_elems);
avio_printf(probe_out, "]\n");
}
return;
str = p = av_strdup(name);
+ if (!str)
+ return;
while (*p) {
*p = av_toupper(*p);
p++;
return;
str = p = av_strdup(name);
+ if (!str)
+ return;
while (*p) {
*p = av_toupper(*p);
p++;
case AVMEDIA_TYPE_VIDEO:
probe_int("width", dec_ctx->width);
probe_int("height", dec_ctx->height);
+ probe_int("coded_width", dec_ctx->coded_width);
+ probe_int("coded_height", dec_ctx->coded_height);
probe_int("has_b_frames", dec_ctx->has_b_frames);
if (dec_ctx->sample_aspect_ratio.num)
sar = &dec_ctx->sample_aspect_ratio;