Skip to content

Commit

Permalink
ios/VideoToolbox: rename init_videotoolbox -> videotoolbox_create
Browse files Browse the repository at this point in the history
  • Loading branch information
bbcallen committed Jul 14, 2016
1 parent 14d8c00 commit 6ac3fb2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

typedef struct VideoToolBoxContext VideoToolBoxContext;

VideoToolBoxContext* init_videotoolbox(FFPlayer* ffp, AVCodecContext* ic);
VideoToolBoxContext* videotoolbox_create(FFPlayer* ffp, AVCodecContext* ic);

int videotoolbox_decode_frame(VideoToolBoxContext* context);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ int videotoolbox_decode_frame(VideoToolBoxContext* context)
return got_frame;
}

VideoToolBoxContext* init_videotoolbox(FFPlayer* ffp, AVCodecContext* avctx)
VideoToolBoxContext* videotoolbox_create(FFPlayer* ffp, AVCodecContext* avctx)
{
int width = avctx->width;
int height = avctx->height;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ static int func_run_sync(IJKFF_Pipenode *node)
opaque->avctx = opaque->decoder->avctx;
switch (opaque->avctx->codec_id) {
case AV_CODEC_ID_H264:
opaque->context = init_videotoolbox(ffp, opaque->avctx);
opaque->context = videotoolbox_create(ffp, opaque->avctx);
break;
default:
ALOGI("Videotoolbox-pipeline:open_video_decoder: not H264\n");
Expand Down

0 comments on commit 6ac3fb2

Please sign in to comment.