|
|
@ -165,9 +165,9 @@ int open_input(JNIEnv *env, const char *file_name, jobject surface) { |
|
|
|
|
|
|
|
|
|
|
|
int i; |
|
|
|
int i; |
|
|
|
for (i = 0; i < pFormatCtx->nb_streams; i++) { |
|
|
|
for (i = 0; i < pFormatCtx->nb_streams; i++) { |
|
|
|
if (pFormatCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO |
|
|
|
if (pFormatCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) { |
|
|
|
&& video_stream_index < 0) { |
|
|
|
|
|
|
|
video_stream_index = i; |
|
|
|
video_stream_index = i; |
|
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (video_stream_index == -1) { |
|
|
|
if (video_stream_index == -1) { |
|
|
|