Skip to content

Commit 4c2de37

Browse files
author
Rémi Denis-Courmont
committed
Revert "Revert "transcode: disable hardware decoding by default""
This reverts commit 059d52f.
1 parent f6a2447 commit 4c2de37

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/stream_out/transcode/transcode.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,12 @@ static int Open( vlc_object_t *p_this )
383383
p_sys->f_scale, p_sys->i_vbitrate / 1000 );
384384
}
385385

386+
/* Disable hardware decoding by default (unlike normal playback) */
387+
psz_string = var_CreateGetString( p_stream, "avcodec-hw" );
388+
if( !strcasecmp( "any", psz_string ) )
389+
var_SetString( p_stream, "avcodec-hw", "none" );
390+
free( psz_string );
391+
386392
/* Subpictures transcoding parameters */
387393
p_sys->p_spu = NULL;
388394
p_sys->p_spu_blend = NULL;

0 commit comments

Comments
 (0)