diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-01 14:10:20 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-07 11:45:37 +0200 |
commit | 18ded93ab3db5996cd86fe2f5b36ba3c4bd58711 (patch) | |
tree | 0444ed3f88a8d90d34bec1d93ea7cbfa9aa9ef01 /libavfilter | |
parent | 22333a6b19f59ebc83933b910069d00c445d01ed (diff) | |
download | ffmpeg-18ded93ab3db5996cd86fe2f5b36ba3c4bd58711.tar.gz |
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.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vsrc_buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c index 84456718c4..b094e99209 100644 --- a/libavfilter/vsrc_buffer.c +++ b/libavfilter/vsrc_buffer.c @@ -104,6 +104,7 @@ int av_vsrc_buffer_add_frame2(AVFilterContext *buffer_filter, AVFrame *frame, memcpy(c->frame.linesize, frame->linesize, sizeof(frame->linesize)); c->frame.width = frame->width; c->frame.height = frame->height; + c->frame.format = frame->format; c->frame.interlaced_frame= frame->interlaced_frame; c->frame.top_field_first = frame->top_field_first; c->frame.key_frame = frame->key_frame; |