xrdpvr: build fix, don't need AVDictionary
This commit is contained in:
parent
c147d88b99
commit
55f0bfd0b9
@ -129,8 +129,6 @@ xrdpvr_deinit_player(void *channel, int stream_id)
|
|||||||
int
|
int
|
||||||
xrdpvr_play_media(void *channel, int stream_id, char *filename)
|
xrdpvr_play_media(void *channel, int stream_id, char *filename)
|
||||||
{
|
{
|
||||||
AVDictionary *p_audio_opt_dict = NULL;
|
|
||||||
AVDictionary *p_video_opt_dict = NULL;
|
|
||||||
AVPacket av_pkt;
|
AVPacket av_pkt;
|
||||||
|
|
||||||
int video_index = -1;
|
int video_index = -1;
|
||||||
@ -208,7 +206,7 @@ xrdpvr_play_media(void *channel, int stream_id, char *filename)
|
|||||||
|
|
||||||
/* open decoder for audio stream */
|
/* open decoder for audio stream */
|
||||||
if (avcodec_open2(g_psi.p_audio_codec_ctx, g_psi.p_audio_codec,
|
if (avcodec_open2(g_psi.p_audio_codec_ctx, g_psi.p_audio_codec,
|
||||||
&p_audio_opt_dict) < 0)
|
NULL) < 0)
|
||||||
{
|
{
|
||||||
printf("ERROR: could not open audio decoder\n");
|
printf("ERROR: could not open audio decoder\n");
|
||||||
return -1;
|
return -1;
|
||||||
@ -216,7 +214,7 @@ xrdpvr_play_media(void *channel, int stream_id, char *filename)
|
|||||||
|
|
||||||
/* open decoder for video stream */
|
/* open decoder for video stream */
|
||||||
if (avcodec_open2(g_psi.p_video_codec_ctx, g_psi.p_video_codec,
|
if (avcodec_open2(g_psi.p_video_codec_ctx, g_psi.p_video_codec,
|
||||||
&p_video_opt_dict) < 0)
|
NULL) < 0)
|
||||||
{
|
{
|
||||||
printf("ERROR: could not open video decoder\n");
|
printf("ERROR: could not open video decoder\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user