Skip to content

Commit

Permalink
Merging PR jocover#27 from jocover:master
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterAP23 committed May 4, 2021
1 parent 6252aa5 commit 332802e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nvmpi_dec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ void *dec_capture_loop_fcn(void *arg){
ctx->frame_size[1]=parm.psize[1];
ctx->frame_linesize[2]=parm.width[2];
ctx->frame_size[2]=parm.psize[2];

if (ctx->out_pixfmt==NV_PIX_NV12)
ctx->frame_linesize[1] *= 2;


ret=NvBuffer2Raw(ctx->dst_dma_fd,0,parm.width[0],parm.height[0],ctx->bufptr_0[buf_index]);
Expand Down

0 comments on commit 332802e

Please sign in to comment.