X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=image_input.cpp;fp=image_input.cpp;h=121fa7bf3c6872c04e8b72e332e01486d5704aed;hb=319b807ceede52e45cf07f712259b1a42ec3cc54;hp=49c2f62d8aef7837417baab77002e3f261f2461d;hpb=b5e7ce923d2acf68a975273be231b3ef9e4f6493;p=nageru diff --git a/image_input.cpp b/image_input.cpp index 49c2f62..121fa7b 100644 --- a/image_input.cpp +++ b/image_input.cpp @@ -163,7 +163,7 @@ shared_ptr ImageInput::load_image_raw(const string &pat int stream_index = -1; for (unsigned i = 0; i < format_ctx->nb_streams; ++i) { - if (format_ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) { + if (format_ctx->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) { stream_index = i; break; }