Open ydhl opened 12 years ago
it is related to "connection timeout!"
@Karimai Where is the definition of the error code ? Such as, -110 means "connection timeout!"
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
if connect internet by wifi, it works if connect innernet by 3g, it not work. and return -110
anybody can give me some help?