History

avfoundation: update to use AVCodecParameters

Vittorio Giovara committed 9 years ago

Commit 85c2bf91 parent 94c54d91 file · +5 −5Browse files

Showing the changes to libavdevice (1 of 1 file). Show all

Unified · Split

libavdevice/avfoundation_dec.m+5−5
@@ -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;

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