diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-04-26 11:31:28 -0400 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-04-26 11:47:31 -0400 |
commit | 85c2bf9d2cc7dad3d5c6dc79f802a74efa8d8fce (patch) | |
tree | fe02569c6e1ca6b4adafd52a292a1f8b7192658c /libavdevice | |
parent | 94c54d97e7f4fe90570c323803f2bdf6246c1010 (diff) | |
download | ffmpeg-streaming-85c2bf9d2cc7dad3d5c6dc79f802a74efa8d8fce.zip ffmpeg-streaming-85c2bf9d2cc7dad3d5c6dc79f802a74efa8d8fce.tar.gz |
avfoundation: update to use AVCodecParameters
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/avfoundation_dec.m | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavdevice/avfoundation_dec.m b/libavdevice/avfoundation_dec.m index f01484c..e87f3a5 100644 --- a/libavdevice/avfoundation_dec.m +++ b/libavdevice/avfoundation_dec.m @@ -449,11 +449,11 @@ static int get_video_config(AVFormatContext *s) image_buffer = ctx->current_frame; image_buffer_size = CVImageBufferGetEncodedSize(image_buffer); - stream->codec->codec_id = AV_CODEC_ID_RAWVIDEO; - stream->codec->codec_type = AVMEDIA_TYPE_VIDEO; - stream->codec->width = (int)image_buffer_size.width; - stream->codec->height = (int)image_buffer_size.height; - stream->codec->pix_fmt = av_get_pix_fmt(ctx->pixel_format); + stream->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; + stream->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; + stream->codecpar->width = (int)image_buffer_size.width; + stream->codecpar->height = (int)image_buffer_size.height; + stream->codecpar->format = av_get_pix_fmt(ctx->pixel_format); CFRelease(ctx->current_frame); ctx->current_frame = nil; |