Skip to content

Commit

Permalink
Docs: fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
skolelis committed Jan 22, 2025
1 parent 932b10a commit 064f7b4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
11 changes: 5 additions & 6 deletions ecosystem/ffmpeg_plugin/mtl_st20p_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include "mtl_common.h"
#ifdef MTL_GPU_DIRECT_ENABLED
#include <mtl_gpu_direct/gpu.h>
#endif /* MTL_GPU_DIRECT_ENABLED */
#include <mtl/st_convert_api.h>

#include "mtl_common.h"

typedef struct MtlSt20pDemuxerContext {
const AVClass* class; /**< Class for private options. */

Expand Down Expand Up @@ -263,12 +264,10 @@ static int mtl_st20p_read_packet(AVFormatContext* ctx, AVPacket* pkt) {
}

if (s->pixel_format == AV_PIX_FMT_Y210LE) {
ret = st20_rfc4175_422be10_to_y210(
(struct st20_rfc4175_422_10_pg2_be*)frame, (uint16_t*)pkt->data,
s->width, s->height);
ret = st20_rfc4175_422be10_to_y210((struct st20_rfc4175_422_10_pg2_be*)frame,
(uint16_t*)pkt->data, s->width, s->height);
if (ret != 0) {
av_log(ctx, AV_LOG_ERROR,
"st20_rfc4175_422be10_to_y210le failed with %d\n", ret);
av_log(ctx, AV_LOG_ERROR, "st20_rfc4175_422be10_to_y210le failed with %d\n", ret);
return ret;
}
}
Expand Down
9 changes: 5 additions & 4 deletions ecosystem/ffmpeg_plugin/mtl_st20p_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include "mtl_common.h"
#include <mtl/st_convert_api.h>

#include "mtl_common.h"

typedef struct mtlSt20pMuxerContext {
const AVClass* class; /**< Class for private options. */

Expand Down Expand Up @@ -159,9 +160,9 @@ static int mtl_st20p_write_packet(AVFormatContext* ctx, AVPacket* pkt) {
dbg(ctx, "%s(%d), st20p_tx_get_frame: %p\n", __func__, s->idx, frame);

if (s->pixel_format == AV_PIX_FMT_Y210LE) {
st20_y210_to_rfc4175_422be10(
(uint16_t*)pkt->data, (struct st20_rfc4175_422_10_pg2_be*)(frame->addr[0]),
s->width, s->height);
st20_y210_to_rfc4175_422be10((uint16_t*)pkt->data,
(struct st20_rfc4175_422_10_pg2_be*)(frame->addr[0]),
s->width, s->height);
}

/* todo: zero copy with external frame mode */
Expand Down

0 comments on commit 064f7b4

Please sign in to comment.