|
7#
楼主 |
发表于 2020-3-9 10:06:23
|
只看该作者
int main(int argc, char **argv)
{
int ret;
/* Input h264 file */
FILE *in = fopen("test.h264", "r");
/* Output nv12 file */
FILE *out = fopen("test.nv12", "w+");
if(in == NULL)
{
fprintf(stderr, "Open file failed\n");
return -EINVAL;
}
if(in == NULL || out == NULL)
{
fprintf(stderr, "Open file failed\n");
return -EINVAL;
}
ret = mpp_decode(in, out);
exit:
if(in != NULL)
fclose(in);
if(out != NULL)
fclose(out);
return ret;
}
这是example里的mpp_decode源码,没说要带参数啊 |
|