]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/segafilm.c
bit: check av_new_packet() return value
[ffmpeg] / libavformat / segafilm.c
index d497d7b31f4bc790a73867b58237e73077c7593e..1be2c5d042c21122ea97e4645bf7fe1e656aae75 100644 (file)
@@ -151,7 +151,7 @@ static int film_read_header(AVFormatContext *s)
 
         if (film->video_type == AV_CODEC_ID_RAWVIDEO) {
             if (scratch[20] == 24) {
-                st->codec->pix_fmt = PIX_FMT_RGB24;
+                st->codec->pix_fmt = AV_PIX_FMT_RGB24;
             } else {
                 av_log(s, AV_LOG_ERROR, "raw video is using unhandled %dbpp\n", scratch[20]);
                 return -1;