diff options
author | Muhammad Faiz <mfcc64@gmail.com> | 2017-04-22 15:54:58 +0700 |
---|---|---|
committer | Muhammad Faiz <mfcc64@gmail.com> | 2017-04-23 14:27:47 +0700 |
commit | 31f61b0d4f8d452becb44f044c739f9057900159 (patch) | |
tree | 624d61d8db11c10d9f01aabaf649aa1f45a497d3 /libavcodec/cuvid.c | |
parent | fdeab95a823b10adda6f29d134122537c21578e2 (diff) | |
download | ffmpeg-31f61b0d4f8d452becb44f044c739f9057900159.tar.gz |
avcodec: do not use AVFrame accessor
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libavcodec/cuvid.c')
-rw-r--r-- | libavcodec/cuvid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/cuvid.c b/libavcodec/cuvid.c index 4d96cf0204..288083423e 100644 --- a/libavcodec/cuvid.c +++ b/libavcodec/cuvid.c @@ -604,9 +604,9 @@ FF_DISABLE_DEPRECATION_WARNINGS frame->pkt_pts = frame->pts; FF_ENABLE_DEPRECATION_WARNINGS #endif - av_frame_set_pkt_pos(frame, -1); - av_frame_set_pkt_duration(frame, 0); - av_frame_set_pkt_size(frame, -1); + frame->pkt_pos = -1; + frame->pkt_duration = 0; + frame->pkt_size = -1; frame->interlaced_frame = !parsed_frame.is_deinterlacing && !parsed_frame.dispinfo.progressive_frame; |