AVDictionary *all =NULL, *comm =NULL, *prv =NULL;char*buf =NULL;if(!enc || !enc->priv_class || !enc->priv_data_size) {/* codec is not known/has no private options, so save everything as common options */if(avio_open_dyn_buf(&tmp) <0)returnAVERROR(ENOMEM); avio_put_str(...
ret = avio_open_dyn_buf(&ctx->pb); } if (ret < 0) { /* XXX: potential leak */ @@ -2432,7 +2432,7 @@ static int http_prepare_data(HTTPContext *c) return -1; ctx = &c->fmt_ctx; /* prepare header */ if (url_open_dyn_buf(&ctx->pb) < 0) { ...
ret = avio_open_dyn_buf(&dyn_ctx);if(ret <0)return;avio_wb32(dyn_ctx, header); avpriv_mpegaudio_decode_header(&mpah, header); av_assert0(mpah.frame_size >= bytes_needed); ffio_fill(dyn_ctx,0, mp3->xing_offset -4); ffio_wfourcc(dyn_ctx,"Xing");avio_wb32(dyn_ctx,0x01...
AVIOContext* pWriteOnlyBufCtx =NULL; uint8_t* pWriteBuf =NULL; uint8_t* pWriteBuf1 =NULL; nRet= avio_open_dyn_buf(&pWriteOnlyBufCtx); avio_write(pWriteOnlyBufCtx, buf,1024);//int nSize = avio_get_dyn_buf(pWriteOnlyBufCtx, &pWriteBuf);nRet = avio_close_dyn_buf(pWriteOnlyBufCt...
Referenced by ff_flac_parse_picture(), ffio_fdopen(), hds_write_header(), init_fps(), ism_write_header(), main(), mpjpeg_read_probe(), open_null_ctx(), rdt_parse_packet(), read_gab2_sub(), swf_read_header(), url_open_dyn_buf_internal(), and wtvfile_open_sector().◆...
if (url_open_dyn_buf(&pb) < 0) { /* XXX: return an error ? */ @@ -2491,7 +2491,7 @@ static int http_send_data(HTTPContext *c) if (c->rtp_protocol == RTSP_LOWER_TRANSPORT_TCP) { /* RTP packets are sent inside the RTSP TCP connection */ ByteIOContext *pb; AVIOContext...
buffer_size = avio_close_dyn_buf(oc->pb, &buffer); ret = get_chunk_filename(s,0, filename);if(ret <0)gotofail; ret =avio_open2(&pb, filename, AVIO_FLAG_WRITE, &s->interrupt_callback,NULL);if(ret <0)gotofail; avio_write(pb, buffer, buffer_size); ...
AVIOContext *dyn_buf;if(avio_open_dyn_buf(&dyn_buf) <0)returnAVERROR(ENOMEM); hpos = put_header(pb, &ff_asf_comment_header);for(n =0; n < FF_ARRAY_ELEMS(tags); n++) { len = tags[n] ? avio_put_str16le(dyn_buf, tags[n]->value) :0; ...
*/ int avio_close(AVIOContext *s); /** * Open a write only memory stream. * * @param s new IO context * @return zero if no error. */ int avio_open_dyn_buf(AVIOContext **s); /** * Return the written size and a pointer to the buffer. The buffer * must be freed w...
Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your...