[vlc-commits] avcodec: remove refcounted_frames (refs #18697)
Rémi Denis-Courmont
git at videolan.org
Sat Nov 4 09:38:02 CET 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 4 09:52:39 2017 +0200| [9a357a8f3f7d41032da8ef8c38429c0fdedc3d2d] | committer: Rémi Denis-Courmont
avcodec: remove refcounted_frames (refs #18697)
This has no effects when using avcodec_send_packet().
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9a357a8f3f7d41032da8ef8c38429c0fdedc3d2d
---
modules/codec/avcodec/audio.c | 2 --
modules/codec/avcodec/video.c | 1 -
2 files changed, 3 deletions(-)
diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c
index 207a936fd0..6b43627c1e 100644
--- a/modules/codec/avcodec/audio.c
+++ b/modules/codec/avcodec/audio.c
@@ -219,8 +219,6 @@ int InitAudioDec( vlc_object_t *obj )
if( avctx == NULL )
return VLC_EGENERIC;
- avctx->refcounted_frames = true;
-
/* Allocate the memory needed to store the decoder's structure */
decoder_sys_t *p_sys = malloc(sizeof(*p_sys));
if( unlikely(p_sys == NULL) )
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 01772b00bf..89e4464dc1 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -532,7 +532,6 @@ int InitVideoDec( vlc_object_t *obj )
/* Always use our get_buffer wrapper so we can calculate the
* PTS correctly */
p_context->get_buffer2 = lavc_GetFrame;
- p_context->refcounted_frames = true;
p_context->opaque = p_dec;
int i_thread_count = var_InheritInteger( p_dec, "avcodec-threads" );
More information about the vlc-commits
mailing list