Skip to content

Commit

Permalink
Update avcodec_decoder.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Jan 6, 2025
1 parent b83e98c commit e67e3aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/videostreaming/avcodec/avcodec_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,6 @@ int AVCodecDecoder::open_and_decode_until_error(const QOpenHDVideoHelper::VideoS

bool is_mjpeg=false;
if (decoder->id == AV_CODEC_ID_H264) {
qDebug()<<"H264 decode";
qDebug()<<all_hw_configs_for_this_codec(decoder).c_str();
if(!stream_config.enable_software_video_decoder){
// weird workaround needed for pi + DRM_PRIME
Expand Down Expand Up @@ -728,7 +727,8 @@ void AVCodecDecoder::open_and_decode_until_error_custom_rtp(const QOpenHDVideoHe
wanted_hw_pix_fmt = AV_PIX_FMT_MMAL;
use_pi_hw_decode=true;
}else{
wanted_hw_pix_fmt = AV_PIX_FMT_YUV420P;
qDebug()<<"Starting HW decode";
wanted_hw_pix_fmt = AV_PIX_FMT_D3D11;
}
}else{
wanted_hw_pix_fmt = AV_PIX_FMT_YUV420P;
Expand Down

0 comments on commit e67e3aa

Please sign in to comment.