Skip to content

Commit

Permalink
Fix DxVA2 crash on Error path
Browse files Browse the repository at this point in the history
Close #9500 and #9665

Signed-off-by: Jean-Baptiste Kempf <[email protected]>
  • Loading branch information
lu-zero authored and jbkempf committed Oct 21, 2013
1 parent 03e512a commit 5e5a9ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/codec/avcodec/dxva2.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ static int Open(vlc_va_t *external, int codec_id, const es_format_t *fmt)
return VLC_SUCCESS;

error:
Close(va);
Close(external);
return VLC_EGENERIC;
}
/* */
Expand Down

0 comments on commit 5e5a9ad

Please sign in to comment.