mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
Merge commit '0034314a69e76a53534a74cceef865cfcb7b42cc'
* commit '0034314a69e76a53534a74cceef865cfcb7b42cc': rtmp: Always call rtmp_close() on rtmp_open() failure Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
52bf4ad674
@ -2824,11 +2824,10 @@ reconnect:
|
||||
}
|
||||
|
||||
if (rt->is_input) {
|
||||
int err;
|
||||
// generate FLV header for demuxer
|
||||
rt->flv_size = 13;
|
||||
if ((err = av_reallocp(&rt->flv_data, rt->flv_size)) < 0)
|
||||
return err;
|
||||
if ((ret = av_reallocp(&rt->flv_data, rt->flv_size)) < 0)
|
||||
goto fail;
|
||||
rt->flv_off = 0;
|
||||
memcpy(rt->flv_data, "FLV\1\0\0\0\0\011\0\0\0\0", rt->flv_size);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user