mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:21:11 +01:00
tools/decode_simple: initialize decoder parameters with container info
This commit is contained in:
parent
992e984fa8
commit
554c6d7cb1
1 changed files with 4 additions and 0 deletions
|
|
@ -149,6 +149,10 @@ int ds_open(DecodeContext *dc, const char *url, int stream_idx)
|
|||
if (!dc->decoder)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
ret = avcodec_parameters_to_context(dc->decoder, dc->stream->codecpar);
|
||||
if (ret < 0)
|
||||
goto fail;
|
||||
|
||||
return 0;
|
||||
|
||||
fail:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue