History

lavc: add width and height fields to AVFrame

width and height are per-frame properties, setting these values in AVFrame simplify the operation of extraction of that information, since avoids the need to check the codec/stream context.

Stefano Sabatini committed 15 years ago

Commit 22333a61 parent 314374e5 files · +17 −1Browse files

Showing the changes to libavfilter/vsrc_buffer.c (1 of 5 files). Show all

Unified · Split

libavfilter/vsrc_buffer.c+2−0
@@ -102,6 +102,8 @@ int av_vsrc_buffer_add_frame2(AVFilterContext *buffer_filter, AVFrame *frame, · 101 unmodified lines
102102
103103 memcpy(c->frame.data , frame->data , sizeof(frame->data));
104104 memcpy(c->frame.linesize, frame->linesize, sizeof(frame->linesize));
105+ c->frame.width = frame->width;
106+ c->frame.height = frame->height;
105107 c->frame.interlaced_frame= frame->interlaced_frame;
106108 c->frame.top_field_first = frame->top_field_first;
107109 c->frame.key_frame = frame->key_frame;

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