]> git.sesse.net Git - ffmpeg/blobdiff - doc/examples/hw_decode.c
avformat/avformat, utils: Make av_find_best_stream const-correct
[ffmpeg] / doc / examples / hw_decode.c
index 71be6e670914c49a81afb7554b32d3c8ec664ca1..096a229c0d2a9934b17ed4641cbbdd91ef5e042d 100644 (file)
@@ -152,7 +152,7 @@ int main(int argc, char *argv[])
     int video_stream, ret;
     AVStream *video = NULL;
     AVCodecContext *decoder_ctx = NULL;
-    AVCodec *decoder = NULL;
+    const AVCodec *decoder = NULL;
     AVPacket packet;
     enum AVHWDeviceType type;
     int i;