Skip to content

Commit

Permalink
Fix image subs
Browse files Browse the repository at this point in the history
  • Loading branch information
myrsloik committed Sep 10, 2021
1 parent f10fab3 commit f0c95a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ extern "C" void VS_CC imageFileCreate(const VSMap *in, VSMap *out, void *userDat
return;
}


av_opt_get_image_size(fctx->streams[stream_index]->codecpar, "video_size", 0, &d.vi.width, &d.vi.height);
d.vi.width = fctx->streams[stream_index]->codecpar->width;
d.vi.height = fctx->streams[stream_index]->codecpar->height;

Subtitle current_subtitle = { };

Expand Down

0 comments on commit f0c95a1

Please sign in to comment.