[FFmpeg-cvslog] rtmp_write_amf_data: remove dead code

Michael Niedermayer git at videolan.org
Sat Oct 20 23:02:16 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 20 22:57:30 2012 +0200| [3a8b66af6cf6af9da5ff97a5930d10a7a4568558] | committer: Michael Niedermayer

rtmp_write_amf_data: remove dead code

Fixes CID732199
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/rtmpproto.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index dbe9870..1d00cbb 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -256,9 +256,6 @@ static int rtmp_write_amf_data(URLContext *s, char *param, uint8_t **p)
         *value = '\0';
         value++;
 
-        if (!field || !value)
-            goto fail;
-
         ff_amf_write_field_name(p, field);
     } else {
         goto fail;



More information about the ffmpeg-cvslog mailing list