History

lavc: add format field to AVFrame

The format is a per-frame property, having it in AVFrame simplify the operation of extraction of that information, since avoids the need to access the codec/stream context.

Stefano Sabatini committed 15 years ago

Commit 18ded931 parent 22333a65 files · +17 −1Browse files

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

Unified · Split

libavfilter/vsrc_buffer.c+1−0
@@ -104,6 +104,7 @@ int av_vsrc_buffer_add_frame2(AVFilterContext *buffer_filter, AVFrame *frame, · 103 unmodified lines
104104 memcpy(c->frame.linesize, frame->linesize, sizeof(frame->linesize));
105105 c->frame.width = frame->width;
106106 c->frame.height = frame->height;
107+ c->frame.format = frame->format;
107108 c->frame.interlaced_frame= frame->interlaced_frame;
108109 c->frame.top_field_first = frame->top_field_first;
109110 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