Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

av_read_frame not work, return -110 #60

Open
ydhl opened this issue Oct 30, 2012 · 3 comments
Open

av_read_frame not work, return -110 #60

ydhl opened this issue Oct 30, 2012 · 3 comments

Comments

@ydhl
Copy link

ydhl commented Oct 30, 2012

if connect internet by wifi, it works
if connect innernet by 3g, it not work. and return -110

anybody can give me some help?

@Karimai
Copy link

Karimai commented Jun 10, 2015

it is related to "connection timeout!"

@jpxiong
Copy link

jpxiong commented Jun 10, 2015

@Karimai Where is the definition of the error code ? Such as, -110 means "connection timeout!"

@Karimai
Copy link

Karimai commented Jun 10, 2015

static char *const get_error_text(const int error)
{
static char error_buffer[255];
av_strerror(error, error_buffer, sizeof(error_buffer));
return error_buffer;
}

ret = av_read_frame(InputFormatContext, &packet);
if(ret < 0)
printf("%s", get_error_text(retReadFrame));

use this code to see the error reason.
Some of are in error.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants