data_size = (ist->st->codec->width * ist->st->codec->height * 3) / 2;
/* XXX: allocate picture correctly */
avcodec_get_frame_defaults(&picture);
-
ret = avcodec_decode_video2(ist->st->codec,
&picture, &got_picture, &avpkt);
+ if (picture.key_frame)
+ printf("*");
ist->st->quality= picture.quality;
if (ret < 0)
goto fail_decode;
frsh_rel_time_t disk_budget, disk_period;
- int ret, terror;
+ int ret;
- PXW(frsh_init());
-
cpu_budget = fosa_msec_to_rel_time(5);
cpu_period = fosa_msec_to_rel_time(1000/50);
show_banner();
+#if CONFIG_FFMPEG_WITH_FRSH
+ {
+ int terror;
+ PXW(frsh_init());
+ printf("FRSH initialized\n");
+ }
+#endif
+
/* parse options */
parse_options(argc, argv, options, opt_output_file);