aboutsummaryrefslogtreecommitdiffstats
path: root/cmdutils.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-11-11 09:14:07 +0100
committerAnton Khirnov <anton@khirnov.net>2012-12-04 21:42:44 +0100
commitff953fecffd3b9a616a046723fb9d4690be032a6 (patch)
treee3bda81a49e7b5b610a3c629dc10b6750e9d842e /cmdutils.c
parent594d4d5df3c70404168701dd5c90b7e6e5587793 (diff)
downloadffmpeg-ff953fecffd3b9a616a046723fb9d4690be032a6.tar.gz
lavc: set frame properties in ff_get_buffer().
There is no point in duplicating this code in every get_buffer() implementation.
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 6746be143f..42029d5fe2 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -1367,11 +1367,6 @@ int codec_get_buffer(AVCodecContext *s, AVFrame *frame)
frame->opaque = buf;
frame->type = FF_BUFFER_TYPE_USER;
frame->extended_data = frame->data;
- frame->pkt_pts = s->pkt ? s->pkt->pts : AV_NOPTS_VALUE;
- frame->width = buf->w;
- frame->height = buf->h;
- frame->format = buf->pix_fmt;
- frame->sample_aspect_ratio = s->sample_aspect_ratio;
for (i = 0; i < FF_ARRAY_ELEMS(buf->data); i++) {
frame->base[i] = buf->base[i]; // XXX h264.c uses base though it shouldn't