Skip to content

Commit

Permalink
decode: Move to codecpar
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Buitenhuis <[email protected]>
  • Loading branch information
dwbuiten committed May 29, 2018
1 parent 1930621 commit 99b10e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/decode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ int decodeframe(int frame_num, d2vcontext *ctx, decodecontext *dctx, AVFrame *ou
break;
} else {
for(i = 0; i < dctx->fctx->nb_streams; i++)
if (dctx->fctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO)
if (dctx->fctx->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO)
break;
}

Expand Down

0 comments on commit 99b10e3

Please sign in to comment.