[FFmpeg-cvslog] avcodec/mpegvideo_enc: check for SpeedHQ encoder

Gyan Doshi git at videolan.org
Wed Dec 9 09:21:55 EET 2020


ffmpeg | branch: master | Gyan Doshi <ffmpeg at gyani.pro> | Tue Dec  8 19:20:41 2020 +0530| [b9b719fedc532ebc6bbde711d60985e8cb5957b2] | committer: Gyan Doshi

avcodec/mpegvideo_enc: check for SpeedHQ encoder

Avoids build failure when mpegvideo_enc is built but SpeedHQ encoder
isn't.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b9b719fedc532ebc6bbde711d60985e8cb5957b2
---

 libavcodec/mpegvideo_enc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 7afc789ec0..243d3ca632 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -2996,7 +2996,7 @@ static int encode_thread(AVCodecContext *c, void *arg){
     s->first_slice_line = 1;
     s->ptr_lastgob = s->pb.buf;
     for (mb_y_order = s->start_mb_y; mb_y_order < s->end_mb_y; mb_y_order++) {
-        if (s->codec_id == AV_CODEC_ID_SPEEDHQ) {
+        if (CONFIG_SPEEDHQ_ENCODER && s->codec_id == AV_CODEC_ID_SPEEDHQ) {
             int first_in_slice;
             mb_y = ff_speedhq_mb_y_order_to_mb(mb_y_order, s->mb_height, &first_in_slice);
             if (first_in_slice && mb_y_order != s->start_mb_y)



More information about the ffmpeg-cvslog mailing list