Allow encodiing empty subtitles.

pull/2/head
JULIAN GARDNER 14 years ago committed by Michael Niedermayer
parent 95f163b33b
commit 423986fc09
  1. 3
      libavcodec/utils.c

@ -678,8 +678,7 @@ int avcodec_encode_subtitle(AVCodecContext *avctx, uint8_t *buf, int buf_size,
av_log(avctx, AV_LOG_ERROR, "start_display_time must be 0.\n");
return -1;
}
if(sub->num_rects == 0 || !sub->rects)
return -1;
ret = avctx->codec->encode(avctx, buf, buf_size, sub);
avctx->frame_number++;
return ret;

Loading…
Cancel
Save