[FFmpeg-cvslog] avcodec/rawenc: Use ff_alloc_packet() instead of ff_alloc_packet2()

2015-08-20 Thread Michael Niedermayer
ffmpeg | branch: release/2.4 | Michael Niedermayer michae...@gmx.at | Sun Jul 
 5 20:00:15 2015 +0200| [7ecaa736e781c4a4c6dd25601927dafde423c5d6] | committer: 
Michael Niedermayer

avcodec/rawenc: Use ff_alloc_packet() instead of ff_alloc_packet2()

the later is not optimal when the buffer size is well known at allocation time

This avoids a memcpy()
Overall 2.5% speedup with a random 1920x1080 video

Signed-off-by: Michael Niedermayer michae...@gmx.at
(cherry picked from commit 47496eb97cff8130991313d1b7292613620d8592)

Signed-off-by: Michael Niedermayer michae...@gmx.at

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

 libavcodec/rawenc.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c
index c579230..9bcf5c4 100644
--- a/libavcodec/rawenc.c
+++ b/libavcodec/rawenc.c
@@ -51,7 +51,7 @@ static int raw_encode(AVCodecContext *avctx, AVPacket *pkt,
 if (ret  0)
 return ret;
 
-if ((ret = ff_alloc_packet2(avctx, pkt, ret))  0)
+if ((ret = ff_alloc_packet(pkt, ret))  0)
 return ret;
 if ((ret = avpicture_layout((const AVPicture *)frame, avctx-pix_fmt, 
avctx-width,
 avctx-height, pkt-data, pkt-size))  0)

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog


[FFmpeg-cvslog] avcodec/rawenc: Use ff_alloc_packet() instead of ff_alloc_packet2()

2015-07-27 Thread Michael Niedermayer
ffmpeg | branch: release/2.5 | Michael Niedermayer michae...@gmx.at | Sun Jul 
 5 20:00:15 2015 +0200| [e9deb5581075bfa79f22a6c228a23849f8199157] | committer: 
Michael Niedermayer

avcodec/rawenc: Use ff_alloc_packet() instead of ff_alloc_packet2()

the later is not optimal when the buffer size is well known at allocation time

This avoids a memcpy()
Overall 2.5% speedup with a random 1920x1080 video

Signed-off-by: Michael Niedermayer michae...@gmx.at
(cherry picked from commit 47496eb97cff8130991313d1b7292613620d8592)

Signed-off-by: Michael Niedermayer michae...@gmx.at

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

 libavcodec/rawenc.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c
index c579230..9bcf5c4 100644
--- a/libavcodec/rawenc.c
+++ b/libavcodec/rawenc.c
@@ -51,7 +51,7 @@ static int raw_encode(AVCodecContext *avctx, AVPacket *pkt,
 if (ret  0)
 return ret;
 
-if ((ret = ff_alloc_packet2(avctx, pkt, ret))  0)
+if ((ret = ff_alloc_packet(pkt, ret))  0)
 return ret;
 if ((ret = avpicture_layout((const AVPicture *)frame, avctx-pix_fmt, 
avctx-width,
 avctx-height, pkt-data, pkt-size))  0)

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog


[FFmpeg-cvslog] avcodec/rawenc: Use ff_alloc_packet() instead of ff_alloc_packet2()

2015-07-20 Thread Michael Niedermayer
ffmpeg | branch: release/2.6 | Michael Niedermayer michae...@gmx.at | Sun Jul 
 5 20:00:15 2015 +0200| [a4cb97067b4c679a1bc5f8fa5406b81978885e8a] | committer: 
Michael Niedermayer

avcodec/rawenc: Use ff_alloc_packet() instead of ff_alloc_packet2()

the later is not optimal when the buffer size is well known at allocation time

This avoids a memcpy()
Overall 2.5% speedup with a random 1920x1080 video

Signed-off-by: Michael Niedermayer michae...@gmx.at
(cherry picked from commit 47496eb97cff8130991313d1b7292613620d8592)

Signed-off-by: Michael Niedermayer michae...@gmx.at

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

 libavcodec/rawenc.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c
index c579230..9bcf5c4 100644
--- a/libavcodec/rawenc.c
+++ b/libavcodec/rawenc.c
@@ -51,7 +51,7 @@ static int raw_encode(AVCodecContext *avctx, AVPacket *pkt,
 if (ret  0)
 return ret;
 
-if ((ret = ff_alloc_packet2(avctx, pkt, ret))  0)
+if ((ret = ff_alloc_packet(pkt, ret))  0)
 return ret;
 if ((ret = avpicture_layout((const AVPicture *)frame, avctx-pix_fmt, 
avctx-width,
 avctx-height, pkt-data, pkt-size))  0)

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog


[FFmpeg-cvslog] avcodec/rawenc: Use ff_alloc_packet() instead of ff_alloc_packet2()

2015-07-18 Thread Michael Niedermayer
ffmpeg | branch: release/2.7 | Michael Niedermayer michae...@gmx.at | Sun Jul 
 5 20:00:15 2015 +0200| [ac91bfe086535cfdba443abf3c9cfedf4fd8cb36] | committer: 
Michael Niedermayer

avcodec/rawenc: Use ff_alloc_packet() instead of ff_alloc_packet2()

the later is not optimal when the buffer size is well known at allocation time

This avoids a memcpy()
Overall 2.5% speedup with a random 1920x1080 video

Signed-off-by: Michael Niedermayer michae...@gmx.at
(cherry picked from commit 47496eb97cff8130991313d1b7292613620d8592)

Signed-off-by: Michael Niedermayer michae...@gmx.at

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

 libavcodec/rawenc.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c
index d792393..71c1de5 100644
--- a/libavcodec/rawenc.c
+++ b/libavcodec/rawenc.c
@@ -54,7 +54,7 @@ static int raw_encode(AVCodecContext *avctx, AVPacket *pkt,
 if (ret  0)
 return ret;
 
-if ((ret = ff_alloc_packet2(avctx, pkt, ret))  0)
+if ((ret = ff_alloc_packet(pkt, ret))  0)
 return ret;
 if ((ret = avpicture_layout((const AVPicture *)frame, avctx-pix_fmt, 
avctx-width,
 avctx-height, pkt-data, pkt-size))  0)

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog


[FFmpeg-cvslog] avcodec/rawenc: Use ff_alloc_packet() instead of ff_alloc_packet2()

2015-07-05 Thread Michael Niedermayer
ffmpeg | branch: master | Michael Niedermayer michae...@gmx.at | Sun Jul  5 
20:00:15 2015 +0200| [47496eb97cff8130991313d1b7292613620d8592] | committer: 
Michael Niedermayer

avcodec/rawenc: Use ff_alloc_packet() instead of ff_alloc_packet2()

the later is not optimal when the buffer size is well known at allocation time

This avoids a memcpy()
Overall 2.5% speedup with a random 1920x1080 video

Signed-off-by: Michael Niedermayer michae...@gmx.at

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

 libavcodec/rawenc.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c
index d792393..71c1de5 100644
--- a/libavcodec/rawenc.c
+++ b/libavcodec/rawenc.c
@@ -54,7 +54,7 @@ static int raw_encode(AVCodecContext *avctx, AVPacket *pkt,
 if (ret  0)
 return ret;
 
-if ((ret = ff_alloc_packet2(avctx, pkt, ret))  0)
+if ((ret = ff_alloc_packet(pkt, ret))  0)
 return ret;
 if ((ret = avpicture_layout((const AVPicture *)frame, avctx-pix_fmt, 
avctx-width,
 avctx-height, pkt-data, pkt-size))  0)

___
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog