[FFmpeg-cvslog] ffplay: replace use of av_copy_packet()

James Almer git at videolan.org
Tue Sep 26 03:29:53 EEST 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Sep 23 20:32:42 2017 -0300| [c463b81d037fd88fdda432324b995d82510a5bc7] | committer: James Almer

ffplay: replace use of av_copy_packet()

Signed-off-by: James Almer <jamrial at gmail.com>

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

 ffplay.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index 45f2d78443..9f7774613c 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2978,7 +2978,7 @@ static int read_thread(void *arg)
         if (is->queue_attachments_req) {
             if (is->video_st && is->video_st->disposition & AV_DISPOSITION_ATTACHED_PIC) {
                 AVPacket copy = { 0 };
-                if ((ret = av_copy_packet(&copy, &is->video_st->attached_pic)) < 0)
+                if ((ret = av_packet_ref(&copy, &is->video_st->attached_pic)) < 0)
                     goto fail;
                 packet_queue_put(&is->videoq, &copy);
                 packet_queue_put_nullpacket(&is->videoq, is->video_stream);



More information about the ffmpeg-cvslog mailing list