History

avcodec/thread: Remove ff_thread_get_format define

Unnecessary since FF_API_THREAD_SAFE_CALLBACKS is no more.

Andreas Rheinhardt committed 3 years ago

Commit 6434e441 parent 0058f607 files · +6 −8Browse files

Unified · Split

7 files
  1. libavcodec/av1dec.c +1 −1
  2. libavcodec/h264_slice.c +1 −1
  3. libavcodec/hevcdec.c +1 −1
  4. libavcodec/mpeg12dec.c +1 −1
  5. libavcodec/proresdec2.c +1 −1
  6. libavcodec/thread.h +0 −2
  7. libavcodec/vp9.c +1 −1
libavcodec/av1dec.c+1−1
@@ -613,7 +613,7 @@ static int get_pixel_format(AVCodecContext *avctx) · 612 unmodified lines
613613 *fmtp++ = pix_fmt;
614614 *fmtp = AV_PIX_FMT_NONE;
615615
616− ret = ff_thread_get_format(avctx, pix_fmts);
616+ ret = ff_get_format(avctx, pix_fmts);
617617
618618 /**
619619 * check if the HW accel is inited correctly. If not, return un-implemented.
libavcodec/h264_slice.c+1−1
@@ -922,7 +922,7 @@ static enum AVPixelFormat get_pixel_format(H264Context *h, int force_callback) · 921 unmodified lines
922922 for (int i = 0; pix_fmts[i] != AV_PIX_FMT_NONE; i++)
923923 if (pix_fmts[i] == h->avctx->pix_fmt && !force_callback)
924924 return pix_fmts[i];
925− return ff_thread_get_format(h->avctx, pix_fmts);
925+ return ff_get_format(h->avctx, pix_fmts);
926926 }
927927
928928 /* export coded and cropped frame dimensions to AVCodecContext */
libavcodec/hevcdec.c+1−1
@@ -521,7 +521,7 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps) · 520 unmodified lines
521521 *fmt++ = sps->pix_fmt;
522522 *fmt = AV_PIX_FMT_NONE;
523523
524− return ff_thread_get_format(s->avctx, pix_fmts);
524+ return ff_get_format(s->avctx, pix_fmts);
525525 }
526526
527527 static int set_sps(HEVCContext *s, const HEVCSPS *sps,
libavcodec/mpeg12dec.c+1−1
@@ -1168,7 +1168,7 @@ static enum AVPixelFormat mpeg_get_pixelformat(AVCodecContext *avctx) · 1167 unmodified lines
11681168 else
11691169 pix_fmts = mpeg12_pixfmt_list_444;
11701170
1171− return ff_thread_get_format(avctx, pix_fmts);
1171+ return ff_get_format(avctx, pix_fmts);
11721172 }
11731173
11741174 /* Call this function when we know all parameters.
libavcodec/proresdec2.c+1−1
@@ -278,7 +278,7 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf, · 277 unmodified lines
278278 *fmtp++ = ctx->pix_fmt;
279279 *fmtp = AV_PIX_FMT_NONE;
280280
281− if ((ret = ff_thread_get_format(avctx, pix_fmts)) < 0)
281+ if ((ret = ff_get_format(avctx, pix_fmts)) < 0)
282282 return ret;
283283
284284 avctx->pix_fmt = ret;
libavcodec/thread.h+0−2
@@ -62,8 +62,6 @@ int ff_thread_decode_frame(AVCodecContext *avctx, AVFrame *picture, · 61 unmodified lines
6262 */
6363 void ff_thread_finish_setup(AVCodecContext *avctx);
6464
65−#define ff_thread_get_format ff_get_format
66−
6765 /**
6866 * Wrapper around get_buffer() for frame-multithreaded codecs.
6967 * Call this function instead of ff_get_buffer(f).
libavcodec/vp9.c+1−1
@@ -250,7 +250,7 @@ static int update_size(AVCodecContext *avctx, int w, int h) · 249 unmodified lines
250250 *fmtp++ = s->pix_fmt;
251251 *fmtp = AV_PIX_FMT_NONE;
252252
253− ret = ff_thread_get_format(avctx, pix_fmts);
253+ ret = ff_get_format(avctx, pix_fmts);
254254 if (ret < 0)
255255 return ret;
256256

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