mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
ffplay: use decoder avctx for decoded subtitle width/height
Fixes ticket #5873. Reviewed-by: Josh de Kock <josh@itanimul.li> Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
42111e8543
commit
d14b240ecf
1 changed files with 2 additions and 3 deletions
5
ffplay.c
5
ffplay.c
|
|
@ -2224,7 +2224,6 @@ static int video_thread(void *arg)
|
|||
static int subtitle_thread(void *arg)
|
||||
{
|
||||
VideoState *is = arg;
|
||||
AVCodecParameters *codecpar = is->subtitle_st->codecpar;
|
||||
Frame *sp;
|
||||
int got_subtitle;
|
||||
double pts;
|
||||
|
|
@ -2243,8 +2242,8 @@ static int subtitle_thread(void *arg)
|
|||
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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue