39 int decoded = pkt.
size;
46 fprintf(stderr,
"Error decoding video frame (%s)\n",
av_err2str(ret));
58 for (i = 0; i < sd->
size /
sizeof(*mvs); i++) {
60 printf(
"%d,%2d,%2d,%2d,%4d,%4d,%4d,%4d,0x%"PRIx64
"\n",
83 fprintf(stderr,
"Could not find %s stream in input file '%s'\n",
88 st = fmt_ctx->
streams[*stream_idx];
94 fprintf(stderr,
"Failed to find %s codec\n",
102 fprintf(stderr,
"Failed to open %s codec\n",
111 int main(
int argc,
char **argv)
113 int ret = 0, got_frame;
116 fprintf(stderr,
"Usage: %s <video>\n", argv[0]);
124 fprintf(stderr,
"Could not open source file %s\n",
src_filename);
129 fprintf(stderr,
"Could not find stream information\n");
135 video_dec_ctx = video_stream->
codec;
141 fprintf(stderr,
"Could not find video stream in the input, aborting\n");
148 fprintf(stderr,
"Could not allocate frame\n");
153 printf(
"framenum,source,blockw,blockh,srcx,srcy,dstx,dsty,flags\n");
169 }
while (pkt.
size > 0);