]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/cbs_h2645: remove dead code in cbs_h2645_replace_ps()
authorJames Almer <jamrial@gmail.com>
Tue, 29 Sep 2020 14:20:48 +0000 (11:20 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 1 Dec 2020 16:21:23 +0000 (13:21 -0300)
Missed in 0720e15c0330f0f101c02d5c2c6548e964079f6d. PS units are now guaranteed
to always be reference counter.

Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/cbs_h2645.c

index b6d77dd17f9ca45913aff1fe185d040bb07219f9..434322492c41ad3a8f13dba5aacd87aef6aaad74 100644 (file)
@@ -671,8 +671,6 @@ static int cbs_h26 ## h26n ## _replace_ ## ps_var(CodedBitstreamContext *ctx, \
     if (!priv->ps_var ## _ref[id]) \
         return AVERROR(ENOMEM); \
     priv->ps_var[id] = (H26 ## h26n ## Raw ## ps_name *)priv->ps_var ## _ref[id]->data; \
-    if (!unit->content_ref) \
-        memcpy(priv->ps_var[id], ps_var, sizeof(*ps_var)); \
     return 0; \
 }