havlenapetr / FFMpeg

this is port of ffmpeg for android (this is app, but in future i will do android lib from it and then system will be able to convert videos automatically)
882 stars 420 forks source link

av_read_frame not work, return -110 #60

Open ydhl opened 12 years ago

ydhl commented 12 years ago

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 commented 9 years ago

it is related to "connection timeout!"

jpxiong commented 9 years ago

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

Karimai commented 9 years ago

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