patch-plugins_ffmpeg_video_c 659 B

12345678910111213141516171819
  1. $OpenBSD: patch-plugins_ffmpeg_video_c,v 1.3 2014/04/06 20:24:01 brad Exp $
  2. Deal with newer FFmpeg API.
  3. --- plugins/ffmpeg/video.c.orig Thu Mar 27 17:15:32 2014
  4. +++ plugins/ffmpeg/video.c Thu Mar 27 17:16:55 2014
  5. @@ -1335,6 +1335,11 @@ static int lqt_ffmpeg_encode_video(quicktime_t *file,
  6. codec->avctx->height = height;
  7. lqt_ffmpeg_setup_encoding_colormodel(vtrack);
  8. +#if ENCODE_VIDEO2
  9. + codec->frame->width = width;
  10. + codec->frame->height = height;
  11. + codec->frame->format = codec->avctx->pix_fmt;
  12. +#endif
  13. lqt_get_pixel_aspect(file, track, &pixel_width, &pixel_height);
  14. codec->avctx->sample_aspect_ratio.num = pixel_width;