History

lavc/libxevd: Fixed the has_b_frames setting

has_b_frames used in decoder for size of the frame reordering buffer, and we don't used the max_b_frames in decoder.

Jun Zhao committed 2 years ago

Commit fc02b911 parent ba6b08c1 file · +1 −3Browse files

Unified · Split

libavcodec/libxevd.c+1−3
@@ -170,14 +170,12 @@ static int export_stream_params(const XevdContext *xectx, AVCodecContext *avctx) · 169 unmodified lines
170170 }
171171
172172 // the function returns sps->num_reorder_pics
173− ret = xevd_config(xectx->id, XEVD_CFG_GET_MAX_CODING_DELAY, &avctx->max_b_frames, &size);
173+ ret = xevd_config(xectx->id, XEVD_CFG_GET_MAX_CODING_DELAY, &avctx->has_b_frames, &size);
174174 if (XEVD_FAILED(ret)) {
175175 av_log(avctx, AV_LOG_ERROR, "Failed to get max_coding_delay\n");
176176 return AVERROR_EXTERNAL;
177177 }
178178
179− avctx->has_b_frames = (avctx->max_b_frames) ? 1 : 0;
180−
181179 return 0;
182180 }
183181

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t