mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
fftools/ffmpeg_filter: also remove display matrix side data from buffered frames
Some frames may be buffered before a complex filtergraph can be configured.
This change ensures the side data removal in the cases where autorotation is
enabled also applies to them.
Fixes ticket #11487
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 01f63ef0b4)
This commit is contained in:
parent
db69d06eee
commit
f023d2c61b
1 changed files with 4 additions and 0 deletions
|
|
@ -1998,6 +1998,10 @@ static int configure_filtergraph(FilterGraph *fg, FilterGraphThread *fgt)
|
|||
if (ifp->type_src == AVMEDIA_TYPE_SUBTITLE) {
|
||||
sub2video_frame(&ifp->ifilter, tmp, !fgt->graph);
|
||||
} else {
|
||||
if (ifp->type_src == AVMEDIA_TYPE_VIDEO) {
|
||||
if (ifp->displaymatrix_applied)
|
||||
av_frame_remove_side_data(tmp, AV_FRAME_DATA_DISPLAYMATRIX);
|
||||
}
|
||||
ret = av_buffersrc_add_frame(ifp->filter, tmp);
|
||||
}
|
||||
av_frame_free(&tmp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue