37 case AVERROR(EIO):
return "-EIO";
38 case AVERROR(ENOMEM):
return "-ENOMEM";
39 case AVERROR(EINVAL):
return "-EINVAL";
49 strcpy(buffer,
" NOPTS ");
53 snprintf(buffer, 60,
"%c%"PRId64
".%06"PRId64
"", ts<0 ?
'-' :
' ',
FFABS(ts)/1000000,
FFABS(ts)%1000000);
56 int main(
int argc,
char **argv)
60 int i, ret, stream_id;
68 for(i=2; i<argc; i+=2){
69 if (!strcmp(argv[i],
"-seekforw")){
70 seekfirst = atoi(argv[i+1]);
71 }
else if(!strcmp(argv[i],
"-seekback")){
72 seekfirst = atoi(argv[i+1]);
74 }
else if(!strcmp(argv[i],
"-frames")){
75 frame_count = atoi(argv[i+1]);
82 av_dict_set(&format_opts,
"sample_rate",
"22050", 0);
88 printf(
"usage: %s input_file\n"
98 fprintf(stderr,
"cannot open %s\n", filename);
104 fprintf(stderr,
"%s: could not find codec parameters\n", filename);
125 printf(
"ret:%-10s st:%2d flags:%d dts:%s pts:%s pos:%7" PRId64
" size:%6d",
ret_str(ret), pkt.
stream_index, pkt.
flags, dts_buf, ts_buf, pkt.
pos, pkt.
size);
128 printf(
"ret:%s",
ret_str(ret));
144 ts_str(ts_buf, timestamp, stream_id < 0 ? AV_TIME_BASE_Q : st->time_base);
145 printf(
"ret:%-10s st:%2d flags:%d ts:%s\n",
ret_str(ret), stream_id, i&1, ts_buf);