[FFmpeg-cvslog] ffplay: use av_frame_get_pkt_pos instead directly accessing pkt pos

Marton Balint git at videolan.org
Sat Oct 26 14:02:10 CEST 2013


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sat Oct 19 17:25:57 2013 +0200| [04de0e04c5d0e9298dc020dbdd02b72f6b6d61b7] | committer: Marton Balint

ffplay: use av_frame_get_pkt_pos instead directly accessing pkt pos

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=04de0e04c5d0e9298dc020dbdd02b72f6b6d61b7
---

 ffplay.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index 0be7414..54764c6 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1715,7 +1715,7 @@ static int get_video_frame(VideoState *is, AVFrame *frame, AVPacket *pkt, int *s
                     !isnan(ptsdiff) && ptsdiff > 0 && ptsdiff < AV_NOSYNC_THRESHOLD &&
                     clockdiff + ptsdiff - is->frame_last_filter_delay < 0 &&
                     is->videoq.nb_packets) {
-                    is->frame_last_dropped_pos = pkt->pos;
+                    is->frame_last_dropped_pos = av_frame_get_pkt_pos(frame);
                     is->frame_last_dropped_pts = dpts;
                     is->frame_last_dropped_serial = *serial;
                     is->frame_drops_early++;
@@ -1983,7 +1983,7 @@ static int video_thread(void *arg)
         }
 #else
         pts = (frame->pts == AV_NOPTS_VALUE) ? NAN : frame->pts * av_q2d(is->video_st->time_base);
-        ret = queue_picture(is, frame, pts, pkt.pos, serial);
+        ret = queue_picture(is, frame, pts, av_frame_get_pkt_pos(frame), serial);
         av_frame_unref(frame);
 #endif
 



More information about the ffmpeg-cvslog mailing list