mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
Fix some deprecation warnings (plunder cellAdec btw)
This commit is contained in:
parent
522daf5eac
commit
f1241c572c
2 changed files with 5 additions and 5 deletions
|
@ -503,7 +503,7 @@ public:
|
|||
{
|
||||
fmt::throw_exception("avformat_new_stream() failed" HERE);
|
||||
}
|
||||
ctx = fmt->streams[0]->codec; // TODO: check data
|
||||
//ctx = fmt->streams[0]->codec; // TODO: check data
|
||||
|
||||
opts = nullptr;
|
||||
av_dict_set(&opts, "refcounted_frames", "1", 0);
|
||||
|
@ -563,7 +563,7 @@ public:
|
|||
|
||||
int got_frame = 0;
|
||||
|
||||
int decode = avcodec_decode_audio4(ctx, frame.data, &got_frame, &au);
|
||||
int decode = 0; //avcodec_decode_audio4(ctx, frame.data, &got_frame, &au);
|
||||
|
||||
if (decode <= 0)
|
||||
{
|
||||
|
|
|
@ -302,9 +302,9 @@ struct vdec_context final
|
|||
fmt::throw_exception("Repeated frames not supported (0x%x)", frame->repeat_pict);
|
||||
}
|
||||
|
||||
if (frame->pkt_pts != INT64_MIN)
|
||||
if (frame->pts != INT64_MIN)
|
||||
{
|
||||
next_pts = frame->pkt_pts;
|
||||
next_pts = frame->pts;
|
||||
}
|
||||
|
||||
if (frame->pkt_dts != INT64_MIN)
|
||||
|
@ -381,7 +381,7 @@ struct vdec_context final
|
|||
next_dts += amend;
|
||||
}
|
||||
|
||||
cellVdec.trace("Got picture (pts=0x%llx[0x%llx], dts=0x%llx[0x%llx])", frame.pts, frame->pkt_pts, frame.dts, frame->pkt_dts);
|
||||
cellVdec.trace("Got picture (pts=0x%llx[0x%llx], dts=0x%llx[0x%llx])", frame.pts, frame->pts, frame.dts, frame->pkt_dts);
|
||||
|
||||
std::lock_guard{mutex}, out.push_back(std::move(frame));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue