[FFmpeg-cvslog] avutil/frame: access avframe fields directly in get_frame_defaults()
James Almer
git at videolan.org
Mon Jul 25 23:40:12 EEST 2016
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Jul 25 15:04:42 2016 -0300| [fb91850fe11f9e727b405a92c134b07bdc277921] | committer: James Almer
avutil/frame: access avframe fields directly in get_frame_defaults()
The accessors are needed only from outside libavutil.
Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fb91850fe11f9e727b405a92c134b07bdc277921
---
libavutil/frame.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavutil/frame.c b/libavutil/frame.c
index d5c7c9f..662c20d 100644
--- a/libavutil/frame.c
+++ b/libavutil/frame.c
@@ -101,10 +101,10 @@ static void get_frame_defaults(AVFrame *frame)
frame->pts =
frame->pkt_dts =
frame->pkt_pts = AV_NOPTS_VALUE;
- av_frame_set_best_effort_timestamp(frame, AV_NOPTS_VALUE);
- av_frame_set_pkt_duration (frame, 0);
- av_frame_set_pkt_pos (frame, -1);
- av_frame_set_pkt_size (frame, -1);
+ frame->best_effort_timestamp = AV_NOPTS_VALUE;
+ frame->pkt_duration = 0;
+ frame->pkt_pos = -1;
+ frame->pkt_size = -1;
frame->key_frame = 1;
frame->sample_aspect_ratio = (AVRational){ 0, 1 };
frame->format = -1; /* unknown */
More information about the ffmpeg-cvslog
mailing list