diff options
author | Clément Bœsch <u@pkh.me> | 2017-03-27 01:37:09 +0200 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2017-03-29 14:49:29 +0200 |
commit | 656823220cde2439bf5c636a104e9216227769a4 (patch) | |
tree | ee550c0418d757bd2391f1140aecc66b7acd04d0 /ffmpeg_videotoolbox.c | |
parent | fa0a8faaa4510c946901446e4d2651e3f5f41b60 (diff) | |
download | ffmpeg-656823220cde2439bf5c636a104e9216227769a4.tar.gz |
ffmpeg_videotoolbox: fix usage of av_get_codec_tag_string()
Diffstat (limited to 'ffmpeg_videotoolbox.c')
-rw-r--r-- | ffmpeg_videotoolbox.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ffmpeg_videotoolbox.c b/ffmpeg_videotoolbox.c index 744a2a0009..e9039654b9 100644 --- a/ffmpeg_videotoolbox.c +++ b/ffmpeg_videotoolbox.c @@ -48,7 +48,6 @@ static int videotoolbox_retrieve_data(AVCodecContext *s, AVFrame *frame) uint8_t *data[4] = { 0 }; int linesize[4] = { 0 }; int planes, ret, i; - char codec_str[32]; av_frame_unref(vt->tmp_frame); @@ -60,9 +59,9 @@ static int videotoolbox_retrieve_data(AVCodecContext *s, AVFrame *frame) case kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange: vt->tmp_frame->format = AV_PIX_FMT_NV12; break; #endif default: - av_get_codec_tag_string(codec_str, sizeof(codec_str), s->codec_tag); av_log(NULL, AV_LOG_ERROR, - "%s: Unsupported pixel format: %s\n", codec_str, videotoolbox_pixfmt); + "%s: Unsupported pixel format: %s\n", + av_fourcc2str(s->codec_tag), videotoolbox_pixfmt); return AVERROR(ENOSYS); } |