History

avcodec: Remove deprecated AVCodecContext.coded_frame

Deprecated in 40cf1bbacc6220a0aa6bed5c331871d43f9ce370. (The currently disabled filter vf_mcdeint and vf_uspp were users of this field; they have not been changed, so that whoever wants to fix them can see the state of these filters when they were disabled.)

Andreas Rheinhardt committed 5 years ago

Commit 11bc7901 parent 95054bf42 files · +1 −407Browse files

Showing the changes to libavcodec/avcodec.c (1 of 42 files). Show all

Unified · Split

libavcodec/avcodec.c+0−10
@@ -400,11 +400,6 @@ free_and_end: · 399 unmodified lines
400 av_opt_free(avctx);400 av_opt_free(avctx);
401 401
402 if (av_codec_is_encoder(avctx->codec)) {402 if (av_codec_is_encoder(avctx->codec)) {
403#if FF_API_CODED_FRAME
404FF_DISABLE_DEPRECATION_WARNINGS
405 av_frame_free(&avctx->coded_frame);
406FF_ENABLE_DEPRECATION_WARNINGS
407#endif
408 av_freep(&avctx->extradata);403 av_freep(&avctx->extradata);
409 avctx->extradata_size = 0;404 avctx->extradata_size = 0;
410 }405 }
@@ -578,11 +573,6 @@ av_cold int avcodec_close(AVCodecContext *avctx) · 167 unmodified lines
578 av_freep(&avctx->priv_data);573 av_freep(&avctx->priv_data);
579 if (av_codec_is_encoder(avctx->codec)) {574 if (av_codec_is_encoder(avctx->codec)) {
580 av_freep(&avctx->extradata);575 av_freep(&avctx->extradata);
581#if FF_API_CODED_FRAME
582FF_DISABLE_DEPRECATION_WARNINGS
583 av_frame_free(&avctx->coded_frame);
584FF_ENABLE_DEPRECATION_WARNINGS
585#endif
586 } else if (av_codec_is_decoder(avctx->codec))576 } else if (av_codec_is_decoder(avctx->codec))
587 av_freep(&avctx->subtitle_header);577 av_freep(&avctx->subtitle_header);
588 578

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t