Browse Source

avcodec/mpegvideo_enc: check for SpeedHQ encoder

Avoids build failure when mpegvideo_enc is built but SpeedHQ encoder
isn't.
tags/n4.4
Gyan Doshi 5 years ago
parent
commit
b9b719fedc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/mpegvideo_enc.c

+ 1
- 1
libavcodec/mpegvideo_enc.c View File

@@ -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)


Loading…
Cancel
Save