]> git.sesse.net Git - nageru/blobdiff - image_input.cpp
Remove some use of the AVStream::codec parameter (not all). Fixes some deprecation...
[nageru] / image_input.cpp
index 49c2f62d8aef7837417baab77002e3f261f2461d..121fa7bf3c6872c04e8b72e332e01486d5704aed 100644 (file)
@@ -163,7 +163,7 @@ shared_ptr<const ImageInput::Image> 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;
                }