Unified · Split
| @@ -449,11 +449,11 @@ static int get_video_config(AVFormatContext *s) · 448 unmodified lines | |||
| 449 | image_buffer = ctx->current_frame; | 449 | image_buffer = ctx->current_frame; |
| 450 | image_buffer_size = CVImageBufferGetEncodedSize(image_buffer); | 450 | image_buffer_size = CVImageBufferGetEncodedSize(image_buffer); |
| 451 | 451 | ||
| 452 | stream->codec->codec_id = AV_CODEC_ID_RAWVIDEO; | 452 | stream->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; |
| 453 | stream->codec->codec_type = AVMEDIA_TYPE_VIDEO; | 453 | stream->codecpar->codec_type = AVMEDIA_TYPE_VIDEO; |
| 454 | stream->codec->width = (int)image_buffer_size.width; | 454 | stream->codecpar->width = (int)image_buffer_size.width; |
| 455 | stream->codec->height = (int)image_buffer_size.height; | 455 | stream->codecpar->height = (int)image_buffer_size.height; |
| 456 | stream->codec->pix_fmt = av_get_pix_fmt(ctx->pixel_format); | 456 | stream->codecpar->format = av_get_pix_fmt(ctx->pixel_format); |
| 457 | 457 | ||
| 458 | CFRelease(ctx->current_frame); | 458 | CFRelease(ctx->current_frame); |
| 459 | ctx->current_frame = nil; | 459 | ctx->current_frame = nil; |