Fixes ticket #5873.
Reviewed-by: Josh de Kock <josh@itanimul.li>
Signed-off-by: Marton Balint <cus@passwd.hu>
static int subtitle_thread(void *arg)
{
VideoState *is = arg;
- AVCodecParameters *codecpar = is->subtitle_st->codecpar;
Frame *sp;
int got_subtitle;
double pts;
pts = sp->sub.pts / (double)AV_TIME_BASE;
sp->pts = pts;
sp->serial = is->subdec.pkt_serial;
- sp->width = codecpar->width;
- sp->height = codecpar->height;
+ sp->width = is->subdec.avctx->width;
+ sp->height = is->subdec.avctx->height;
sp->uploaded = 0;
/* now we can update the picture count */