mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
avcodec/rawdec: use AVFrame accessor functions
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f59ff8faa2
commit
30806ddcbc
@ -183,8 +183,8 @@ static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame,
|
|||||||
frame->top_field_first = avctx->coded_frame->top_field_first;
|
frame->top_field_first = avctx->coded_frame->top_field_first;
|
||||||
frame->reordered_opaque = avctx->reordered_opaque;
|
frame->reordered_opaque = avctx->reordered_opaque;
|
||||||
frame->pkt_pts = avctx->pkt->pts;
|
frame->pkt_pts = avctx->pkt->pts;
|
||||||
frame->pkt_pos = avctx->pkt->pos;
|
av_frame_set_pkt_pos (frame, avctx->pkt->pos);
|
||||||
frame->pkt_duration = avctx->pkt->duration;
|
av_frame_set_pkt_duration(frame, avctx->pkt->duration);
|
||||||
|
|
||||||
if (context->tff >= 0) {
|
if (context->tff >= 0) {
|
||||||
frame->interlaced_frame = 1;
|
frame->interlaced_frame = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user